/starknetTokenApprove
1 min
POST
/starknetTokenApprove
account_idintegerThe account ID that owns the tokens and is granting the approval.
token_addressstring<p>The Starknet contract address of the ERC20-compatible token.</p>
destinationstring<p>The address being approved to spend the tokens (the spender).</p>
resource_bounds_mappingobjectMapping of ResourceBounds objects to set up a smart contract transaction. with list of l1 gas.
amountstring<p>The amount of tokens to approve for spending, in the token's base unit.</p>
validate_transactionboolean<p>When true, performs pre-execution validation to check if the transaction is likely to succeed before submission.</p>
descriptionstringInternal description for transaction records. Not sent to the blockchain.
specific_from_addressstringThe specific address to send from. Cannot be used if the account is defined as an Omnibus account.
acceptstringGenerated from available response content types
200success
curl --request POST \
--url '/starknetTokenApprove?account_id=1&token_address=0x0471...938d&destination=0x0225...a7b9&resource_bounds_mapping=resource_bounds_mapping%3DResourceBoundsMapping(l1_gas%3DResourceBounds(10000%2C%2050000)%2Cl2_gas%3DResourceBounds(1000%2C%203000)%2Cl1_data%3DResourceBounds(8000%2C%2010000))&amount=5000000000000000000&validate_transaction=true&description=Approve%20DEX%20contract%20for%20token%20swap' \
--header 'accept: application/json'