Approve
Vault Address Approval
Parameters
vault_address
string
required
Vault addressdepositor_address
string
Address of the depositoramount
string
Amount of USDC to approve. Accepts whole numbers or decimals (e.g. 1000 or 1000.20)network
string
Network to approve on
Response
201 Success
Object
- data
- signing_payload
string
Hex encoded payload to sign - unsigned_transaction_serialized
string
Hex encoding of the built transaction - network
string
Network name
- signing_payload
Example Request
curl --request POST \
--url https://api.figment.io/opentrade/vaults/vault_address/approve \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-api-key: your-api-key-here'
Example Response
{
"data": {
"signing_payload": "0x4e9e36c3032c59ff3dc186713ca6faad075c2c328182b207cda3b064ebd05690",
"unsigned_transaction_serialized": "0x02f87183aa36a781c38459682f008459682f1a8301b77494fd4f11a2aae86165050688c85ec9ed6210c427a980b844095ea7b3000000000000000000000000d1f0774ccff0ce4f36dea57b6a28ab7feb0a01b00000000000000000000000000000000000000000000000000000000005f5e100c0",
"network": "mainnet"
}
}