Skip to main content

SendToken

    data

    object

    required

    outputs

    object[]

    required

    List of outputs to send the tokens

  • Array [

  • address stringrequired

    Destination address in base58

    value integerrequired

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

    timelock integer

    Timestamp until when the output is locked

    token_uid string

    Hex encoded token uid, ommit for HTR

  • ]

  • inputs

    object[]

    required

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

  • Array [

  • tx_id stringrequired

    Hash in hex of the spending transaction

    index integerrequired

    Index of the output is being spent

  • ]

  • timestamp integer

    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.