Skip to main content
POST
/
prepare-transactions
/
transferFrom
transferFrom
curl --request POST \
  --url https://api.sandbox.brickken.com/prepare-transactions/transferFrom \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "method": "transferFrom",
  "signerAddress": "0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8b",
  "chainId": "aa36a7",
  "tokenSymbol": "EXMPL",
  "from": "0x1111111111111111111111111111111111111111",
  "to": "0x2222222222222222222222222222222222222222",
  "amount": "100"
}
'
{
  "transactions": [
    {}
  ],
  "txId": "<string>"
}
Prepares unsigned transactions for transferring tokens from one address to another (requires prior approval). This endpoint is equivalent to calling /prepare-transactions with method=transferFrom.

Authorizations

x-api-key
string
header
required

Body

application/json

Request body for transferFrom.

method
enum<string>
required

Required. Must be transferFrom.

Available options:
transferFrom
signerAddress
string
required

Required. Wallet address that will sign the prepared transaction.

chainId
string
required

Required. Blockchain network identifier. Hex format is recommended, for example Sepolia aa36a7.

tokenSymbol
string
required

Required. Token symbol. Must be 2 to 5 uppercase letters or numbers.

from
string
required

Required. Owner address to transfer from. This address must have approved signerAddress.

Pattern: ^0x[a-fA-F0-9]{40}$
to
string
required

Required. Recipient address.

Pattern: ^0x[a-fA-F0-9]{40}$
amount
string
required

Required. Amount of tokens to transfer.

gasLimit
string

Optional. Gas limit override. If omitted, the API estimates gas automatically.

privateRpcUrl
string

Optional. Private RPC URL override. If omitted, the API uses the configured RPC for chainId.

nonce
integer

Optional. Nonce override. If omitted, the API reads the pending nonce from the RPC.

Response

200 - application/json

Successful response

transactions
object[]
required
txId
string
required