Skip to main content

SendToken

data objectrequired
outputs object[]required

List of outputs to send the tokens

  • Array [
  • addressstringrequired

    Destination address in base58

    valueintegerrequired

    Value to be sent to the address (without decimal places, e.g. if you want to send 10.02 the value must be 1002)

    timelockinteger

    Timestamp until when the output is locked

    token_uidstring

    Hex encoded token uid, ommit for HTR

  • ]
  • inputs object[]required

    List of inputs to spend the tokens (can be empty)

  • Array [
  • tx_idstringrequired

    Hash in hex of the spending transaction

    indexintegerrequired

    Index of the output is being spent

  • ]
  • timestampinteger

    The timestamp for the transaction. If sent without the inputs, server will chose inputs whose timestamp is smaller than the given value (so the tx is valid). If user sends timestamp=0, server will use current time.

    SendToken
    {
    "data": {
    "outputs": [
    {
    "address": "string",
    "value": 0,
    "timelock": 0,
    "token_uid": "string"
    }
    ],
    "inputs": [
    {
    "tx_id": "string",
    "index": 0
    }
    ],
    "timestamp": 0
    }
    }