Build Gift Code

Build a gift code in a tx_proposal that you can fund and submit to the ledger.

Parameters

Required ParamPurposeRequirements

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 ParamPurposeRequirements

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

{
  "method": "build_gift_code",
  "params": {
    "account_id": "a8c9c7acb96cf4ad9154eec9384c09f2c75a340b441924847fe5f60a41805bde",
    "value_pmob": "42000000000000",
    "memo": "Happy Birthday!"
  },
  "jsonrpc": "2.0",
  "id": 1
}

Last updated