Approve Transaction

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.

Security(Ledger_API_Key and Ledger_API_User) or Ledger_API_Key and Ledger_API_User and Ledger_Store_Auth_Token) or Ledger_API_User or Ledger_API_User and Ledger_Store_Auth_Token)
Request
path Parameters
transaction_id
required
integer

The transaction's ID.

Request Body schema: application/json

attributes of the transaction to approve

account_name
required
string

The account's name.

amount
string or null^[0-9]*(\.[0-9]+)?$
Default: null

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

(BitcoinFieldsLAM (object or null)) or (TezosFieldsLAM (object or null)) or (EthereumAndEvmFieldsLAM (object or null)) or (RippleFieldsLAM (object or null)) or (StellarFieldsLAM (object or null)) or (SolanaStakeCreateAndDelegateFieldsLAM (object or null)) or (SolanaStakeActionFieldsLAM (object or null)) or (SolanaStakeMergeFieldsLAM (object or null)) or (CardanoFieldsLAM (object or null)) or (PolkadotFieldsLAM (object or null))
Default: null

coin specific data

max_fees
string or null^[0-9]*(\.[0-9]+)?$
Default: null

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

recipient
required
string

The recipient's address.

Responses
200

The approved transaction

400

Invalid transaction parameters

404

Transaction not found

post/transactions/{transaction_id}/approve
Request samples
application/json
{
  • "account_name": "string",
  • "amount": null,
  • "coin_fields": null,
  • "max_fees": null,
  • "recipient": "string"
}
Response samples
application/json
{
  • "account_id": 1,
  • "account_index": 0,
  • "amount": "1432199",
  • "block": null,
  • "broadcast_on": "2020-12-11T12:56:35.370946+00:00",
  • "coin_fields": {
    },
  • "compliance": null,
  • "confirmations": 28,
  • "created_by": 5,
  • "created_on": "2019-08-24T14:15:22Z",
  • "currency": "bitcoin",
  • "currency_family": "ethereum",
  • "fees": 17500,
  • "id": 0,
  • "interaction_type": null,
  • "labels": [
    ],
  • "last_request": null,
  • "max_fees": 2100,
  • "metadata": null,
  • "min_confirmations": 6,
  • "notes": [
    ],
  • "recipient": "tb1q2tvjts80vthcywq9au2yynpezca57mvv0j7lzm",
  • "senders": [
    ],
  • "speed": "NORMAL",
  • "status": "PENDING_APPROVAL",
  • "tx_hash": "cd199dd0c61ff75c7a442e425771fedfe07e191a76aed64b6a311ec4a369b20e",
  • "type": "SEND",
  • "uid": null
}
Copyright © Ledger Enterprise Platform 2023. All right reserved.