Overview
Use the Gas API to calculate relayer fees and obtain the cryptographic signatures required by theCashmereCCTP contracts. Quotes are deterministic for the current block state and expire 100 seconds after issuance.
GET /getEcdsaSig_native
Generates an ECDSA signature for EVM contracts (transfer, transferWithPermit, transferV2, transferV2WithPermit).
Query Parameters
Example
Response Fields
Gas drops are not returned explicitly. When
isNative=false, include your desired gasDropAmount in TransferParams and pass the same value to the contract.GET /getEd25519Sig_native
Generates an Ed25519 signature for Solana, Aptos, or Sui transfers.
Query Parameters
Example
Message Layout
BCS-encoded fields (in order):- Optional
version(u8). - Optional
localDomain(u32) whenisNativeis provided. destinationDomain(u32).fee(u64).deadline(u64).- Optional
isNative(bool).
Token Pricing
{ domainId: priceInUsd } pulled from Redis.
WebSocket Updates
{ "type": "fees", "data": { <sourceChain>: { fee: { <dest>: { native, usd } }, gas: { native, usd } } } }{ "type": "tokenPrices", "data": { <domainId>: "<price>" } }
Failure Modes
Retries are usually safe after a brief delay if the issue is cache-related.