Transfer Quote
Transfer USDC between subaccounts under the same wallet.
Rate limits
60 transfer quotes/min or 10 every 10 seconds per wallet. (weight=10)
A max of 5 transfer quotes to new recipients (subaccounts) every 24hrs.
Note: Transferring quote to a subaccount that doesn't exist, creates the subaccount.
See more details in API Rate limits.
Request
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
tx | object | Yes | Transfer Quote transaction object. See Signing section for details on the transaction fields. |
tx.sender | string | Yes | Hex string representing the subaccount's 32 bytes (address + subaccount name) of the tx sender. |
tx.recipient | string | Yes | Hex string representing the subaccount's 32 bytes (address + subaccount name) of the quote recipient. |
tx.amount | string | Yes | The amount of USDC to transfer, denominated in |
tx.nonce | string | Yes | This is an incrementing nonce, can be obtained using the Nonces query. |
signature | string | Yes | Hex string representing hash of the signed transaction. See Signing section for more details. |
Signing
See more details and examples in our signing page.
The solidity typed data struct that needs to be signed is:
sender
: a bytes32
sent as a hex string; includes the address and the subaccount identifier.
recipient
: a bytes32
sent as a hex string; includes the address and the subaccount identifier.
amount
: the amount of quote to transfer, sent as an x18
string.
Notes:
If you are transferring
5 USDC
, must specify5000000000000000000
i.e 5 USDC * 1e18.Transfer amount should be >= 5 USDC.
nonce
: the tx_nonce
. This is an incrementing nonce, can be obtained using the Nonces query.
Note: for signing you should always use the data type specified in the solidity struct which might be different from the type sent in the request e.g: nonce
should be an uint64
for Signing but should be sent as a string
in the final payload.
Response
Success
Failure
Last updated