curl --request POST \
--url https://gateway-api-testnet.circle.com/v1/estimate \
--header 'Content-Type: application/json' \
--data '
[
{
"spec": {
"version": 1,
"sourceDomain": 0,
"destinationDomain": 4,
"sourceContract": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationContract": "0x1234567890123456789012345678901234567890123456789012345678901234",
"sourceToken": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationToken": "0x1234567890123456789012345678901234567890123456789012345678901234",
"sourceDepositor": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationRecipient": "0x1234567890123456789012345678901234567890123456789012345678901234",
"sourceSigner": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationCaller": "0x1234567890123456789012345678901234567890123456789012345678901234",
"value": "1000000000000000000",
"salt": "0x1234567890123456789012345678901234567890123456789012345678901234",
"hookData": "0x1a2b3c4d"
},
"maxBlockHeight": "1000000000000000000",
"maxFee": "1000000000000000000"
}
]
'[
{
"burnIntent": {
"maxBlockHeight": "1000000000000000000",
"maxFee": "1000000000000000000",
"spec": {
"version": 1,
"sourceDomain": 0,
"destinationDomain": 4,
"sourceContract": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationContract": "0x1234567890123456789012345678901234567890123456789012345678901234",
"sourceToken": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationToken": "0x1234567890123456789012345678901234567890123456789012345678901234",
"sourceDepositor": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationRecipient": "0x1234567890123456789012345678901234567890123456789012345678901234",
"sourceSigner": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationCaller": "0x1234567890123456789012345678901234567890123456789012345678901234",
"value": "1000000000000000000",
"salt": "0x1234567890123456789012345678901234567890123456789012345678901234",
"hookData": "0x1a2b3c4d"
}
}
}
]Calculates the required fees and expiration block heights for a transfer without requiring signatures or executing the transaction.
curl --request POST \
--url https://gateway-api-testnet.circle.com/v1/estimate \
--header 'Content-Type: application/json' \
--data '
[
{
"spec": {
"version": 1,
"sourceDomain": 0,
"destinationDomain": 4,
"sourceContract": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationContract": "0x1234567890123456789012345678901234567890123456789012345678901234",
"sourceToken": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationToken": "0x1234567890123456789012345678901234567890123456789012345678901234",
"sourceDepositor": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationRecipient": "0x1234567890123456789012345678901234567890123456789012345678901234",
"sourceSigner": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationCaller": "0x1234567890123456789012345678901234567890123456789012345678901234",
"value": "1000000000000000000",
"salt": "0x1234567890123456789012345678901234567890123456789012345678901234",
"hookData": "0x1a2b3c4d"
},
"maxBlockHeight": "1000000000000000000",
"maxFee": "1000000000000000000"
}
]
'[
{
"burnIntent": {
"maxBlockHeight": "1000000000000000000",
"maxFee": "1000000000000000000",
"spec": {
"version": 1,
"sourceDomain": 0,
"destinationDomain": 4,
"sourceContract": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationContract": "0x1234567890123456789012345678901234567890123456789012345678901234",
"sourceToken": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationToken": "0x1234567890123456789012345678901234567890123456789012345678901234",
"sourceDepositor": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationRecipient": "0x1234567890123456789012345678901234567890123456789012345678901234",
"sourceSigner": "0x1234567890123456789012345678901234567890123456789012345678901234",
"destinationCaller": "0x1234567890123456789012345678901234567890123456789012345678901234",
"value": "1000000000000000000",
"salt": "0x1234567890123456789012345678901234567890123456789012345678901234",
"hookData": "0x1a2b3c4d"
}
}
}
]Maximum allowed size (in bytes) for the encoded attestation.
x >= 11A burn intent for estimation purposes without signatures. Optional maxBlockHeight and maxFee for cost estimation.
Show child attributes
Version of the transfer spec (uint32).
0 <= x <= 42949672951
The domain of the wallet contract this transfer came from (uint32).
0 <= x <= 42949672950
The domain of the minter contract this transfer is valid for (uint32).
0 <= x <= 42949672954
The address of the wallet contract on the source domain (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The address of the minter contract on the destination domain (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The token address on the source domain (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The token address on the destination domain (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The address to debit within the wallet contract on the source domain (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The address that should receive the funds on the destination domain (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The signer who signed for the transfer (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The address of the caller who may use the attestation, 0 address if any caller (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The amount to be transferred.
"1000000000000000000"
An arbitrary value chosen by the user to be unique.
"0x1234567890123456789012345678901234567890123456789012345678901234"
Arbitrary bytes that may be used for onchain composition (optional).
"0x1a2b3c4d"
The maximum block height at which this burn is valid (optional for estimation).
"1000000000000000000"
The maximum fee the user is willing to pay (optional for estimation).
"1000000000000000000"
Successfully calculated the estimated fees and expiration block heights
Show child attributes
The maximum block height at which this burn is valid.
"1000000000000000000"
The maximum fee the user is willing to pay.
"1000000000000000000"
Show child attributes
Version of the transfer spec (uint32).
0 <= x <= 42949672951
The domain of the wallet contract this transfer came from (uint32).
0 <= x <= 42949672950
The domain of the minter contract this transfer is valid for (uint32).
0 <= x <= 42949672954
The address of the wallet contract on the source domain (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The address of the minter contract on the destination domain (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The token address on the source domain (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The token address on the destination domain (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The address to debit within the wallet contract on the source domain (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The address that should receive the funds on the destination domain (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The signer who signed for the transfer (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The address of the caller who may use the attestation, 0 address if any caller (32-byte padded).
"0x1234567890123456789012345678901234567890123456789012345678901234"
The amount to be transferred.
"1000000000000000000"
An arbitrary value chosen by the user to be unique.
"0x1234567890123456789012345678901234567890123456789012345678901234"
Arbitrary bytes that may be used for onchain composition (optional).
"0x1a2b3c4d"
Was this page helpful?