Build Gift Code
Build a gift code in a tx_proposal that you can fund and submit to the ledger.
Parameters
Required Param
Purpose
Requirements
account_id
The account on which to perform this action.
Account must exist in the wallet.
value_pmob
The amount of MOB to send in this transaction.
Optional Param
Purpose
Requirements
input_txo_ids
The specific TXOs to use as inputs to this transaction.
TXO IDs (obtain from get_txos_for_account
)
fee
The fee amount to submit with this transaction.
If not provided, uses MINIMUM_FEE
= .01 MOB.
tombstone_block
The block after which this transaction expires.
If not provided, uses cur_height
+ 10.
max_spendable_value
The maximum amount for an input TXO selected for this transaction.
memo
Memo for whoever claims the gift code.
Example
Last updated
Was this helpful?