Approve Transaction

Approve Transaction

post

In this endpoint, enter the exact same values that were used when creating the transaction (for example, max_fees must be the exact same values).

You can retrieve transactions "pending approval" with GET /transactions?status=PENDING_APPROVAL.

However, you should NOT trust those values and you should implement your own source of trust.

Authorizations
X-Ledger-API-KeystringRequired

If you've set up your API Key when initializing your LAM, you'll need to include it as a header along with the api user header. For more details, see step 5 of the get started documentation.

X-Ledger-API-UserstringRequired

(required) Username of a registered API User

Path parameters
transaction_idintegerRequired

The transaction's ID.

Body
account_namestringRequired

The account's name.

amountstring · nullableOptional

The amount to be sent, in the currency's lowest unit. For Smart Contract interaction, use "0" instead of null

Default: nullPattern: ^[0-9]*(\.[0-9]+)?$
coin_fieldsone of · nullableOptional

coin specific data

Default: null
or
or
or
or
or
or
or
or
or
max_feesstring · nullableOptional

The transaction's max fees, in the currency's lowest unit.

Default: nullPattern: ^[0-9]*(\.[0-9]+)?$
recipientstringRequired

The recipient's address.

Responses
chevron-right
200

The approved transaction

application/json
post
/transactions/{transaction_id}/approve