Prepares unsigned transactions for the approve method.
Example:
curl --request POST \
--url https://api.sandbox.brickken.com/prepare-transactions \
--header 'Content-Type: application/json' \
--header 'x-api-key: YOUR_API_KEY' \
--data '{
"method": "approve",
"signerAddress": "0xYourAddress",
"chainId": "aa36a7",
"tokenSymbol": "EXMPL",
"spenderAddress": "0x8ba1f109551bD432803012645Hac136c",
"amount": "100"
}'
/prepare-transactions with method=approve.
| Parameter | Type | Required | Description |
|---|---|---|---|
signerAddress | string | Yes | Address that will sign the transaction |
chainId | string | Yes | Blockchain network identifier (hex format) |
method | string | Yes | Transaction method type (should be “approve”) |
tokenSymbol | string | Yes | Symbol of the token to approve (BKN, USDT, USDC, etc.) |
spenderAddress | string | Yes | Address of the spender being approved |
amount | string | Yes | Allowance amount to approve |
tokenizerAddress | string | No | Tokenizer address (required for approve in certain flows) |