Skip to main content

Create a new asset transfer method

POST 

/asset-transfer-method

Create a new asset transfer method with Lightning Network invoice

Request

Body

required

    accountIduuidrequired

    ID of the account creating the transfer method

    assetIduuidrequired

    ID of the asset to be transferred

    labelstring

    Optional label for the transfer method

    Possible values: <= 255 characters

    tagstring

    Optional tag for the transfer method

    Possible values: <= 255 characters

    transferDirectionstring

    Direction of the transfer (INCOMING or OUTGOING)

    Possible values: [INCOMING, OUTGOING]

    Default value: INCOMING
    singleUseboolean

    Whether this transfer method can be used multiple times. It may depend on the type of the asset transfer method as well.

    Default value: true
    unitCountExpectednumeric

    Expected amount in base units (e.g., satoshis). Send it as a string so big integer values are supported

Responses

Asset transfer method created successfully

Schema

    iduuid
    accountIduuid

    ID of the associated account

    assetIduuid

    ID of the asset being transferred

    singleUseboolean

    Whether this transfer method can be used multiple times

    Default value: true
    assetTransferTypestring

    Type of the asset transfer (BITCOIN or BITCOIN_LIGHTNING)

    Possible values: [BITCOIN, BITCOIN_LIGHTNING]

    Default value: BITCOIN
    transferDirectionstring

    Direction of the transfer (INCOMING or OUTGOING)

    Possible values: [INCOMING, OUTGOING]

    Default value: INCOMING
    labelstring

    Optional label for the transfer method

    Possible values: <= 255 characters

    tagstring

    Optional tag for the transfer method

    Possible values: <= 255 characters

    invoicestring

    Lightning invoice payment request string

    Possible values: <= 639 characters

    unitCountExpectednumeric

    Expected amount in base units (e.g., satoshis)

    createdAtdate-time
    updatedAtdate-time
    expiresAtdate-time

    Expiration time of the transfer method