Get fee quote
Requires scope quotes:read.
ApiKeyAuthorizationBearer <sk_test_ or sk_live_ key>Your sk_live_ / sk_test_ API key
x-customer-id?stringIdentifies whose wallet to quote for.
application/json- body
moduleId*stringSelects the wallet to quote for.
"evm_erc4337""bitcoin""spark""solana""tron""ton"treasury?booleanSet true to quote for the customer's treasury wallet rather than their ordinary one.
txParams*Response Body
200application/json
Quote
TypeScript Definitions
Use the response body type in TypeScript.
400application/json
Malformed body, an address that fails its chain's checksum, a chain or token the lane does not list, or a wallet that cannot cover the transfer plus its fee
TypeScript Definitions
Use the response body type in TypeScript.
401application/json
The Authorization header is missing, malformed, or the API key is unknown or revoked
TypeScript Definitions
Use the response body type in TypeScript.
403application/json
The API key lacks the quotes:read scope
TypeScript Definitions
Use the response body type in TypeScript.
404application/json
No single wallet matched moduleId + x-customer-id + treasury on that chain.
TypeScript Definitions
Use the response body type in TypeScript.
409application/json
erc4337 only: the Safe is not deployed on this chain yet (retry once provisioning puts it on-chain), or the transfer reverted in simulation for a reason other than the balance — a blocked recipient or a paused token
TypeScript Definitions
Use the response body type in TypeScript.
429application/json
The API key exceeded its request budget for the window
TypeScript Definitions
Use the response body type in TypeScript.
500application/json
A fault on our side.
TypeScript Definitions
Use the response body type in TypeScript.
502application/json
Fee estimation failed upstream — the chain's RPC node, the bundler or the paymaster — or the wallet registry could not be reached.
TypeScript Definitions
Use the response body type in TypeScript.
503application/json
The owning chain service is shutting down, or your API key could not be resolved because the key service is unavailable.
TypeScript Definitions
Use the response body type in TypeScript.
504application/json
The owning chain service did not answer within the gateway's timeout.
TypeScript Definitions
Use the response body type in TypeScript.
Language
curl -X POST 'https://api.pilot.shiga.io/v1/quotes' \ -H 'x-customer-id: <customer id>' \ -H 'Authorization: Bearer sk_test_...' \ -H 'Content-Type: application/json' \ -d '{ "moduleId": "evm_erc4337", "txParams": { "chain": "string", "amount": "string", "recipientAddress": "string" }}'{ "data": { "chain": "string", "moduleId": "evm_erc4337", "senderAddress": "string", "token": "usdt", "gasToken": "usdt", "gas": "string", "sponsored": true, "userCost": "string", "maxSendable": "string", "legs": [ { "contract": "string", "symbol": "USDT", "amount": "string" } ], "swap": { "fromContract": "string", "fromSymbol": "USD₮0", "toContract": "string", "amountIn": "string", "expectedOut": "string", "minOut": "string", "fee": "string" } }, "status": 200, "success": true}