SEND - Spend Transaction
login

SEND - Spend Transaction

The following transaction format is used to transfer tokens from one or more token holding UTXO(s) to new token holding UTXO(s).
The UTXOs associated with unspent tokens will be used within the transaction input and, just like the BCH attached to these UTXOs, will be considered totally spent after this transaction is accepted by the blockchain.
Tokens will be assigned to the outputs with indexes 1 to 19 as indicated within the OP_RETURN statement.
Any number of additional BCH-only outputs will be allowed.
A BCH-only output can come before token outputs, but a token quantity of 0 must be specified for this output.

Transaction inputs: Any number of inputs or content of inputs, in any order, but must include sufficient tokens coming from valid token transactions of matching token_id, token_type (see SLP consensus rules).

Transaction outputs:

vout ScriptPubKey (“Address”) BCH amount Implied token amount (base units)
0 OP_RETURN
<lokad id: ‘SLP\x00’> (4 bytes, ascii)
<token_type: 1> (1 to 2 byte integer)
<transaction_type: ‘SEND’> (4 bytes, ascii)
<token_id> (32 bytes)
<token_output_quantity1> (required, 8 byte integer)
<token_output_quantity2> (optional, 8 byte integer)

<token_output_quantity19> (optional, 8 byte integer)
any 0
1 Receiver 1 any token_output_quantity1
any
N Receiver N (N = number of token_output_quantities provided) any token_output_quantityN
Any any 0