GasTankerDocs
Wallets

Get wallet gas health

GET
/v1/wallets/{id}/gas

Authorization

apiKeyAuth
headerX-API-Key<token>

Organization-owned GasTanker API key.

Path Parameters

id*string

Response Body

Response for status 200

application/json
  1. response
networkId*string
Value in"ethereum""base""arbitrum""optimism""polygon""avalanche""hyperevm""sonic""solana""stellar""sui""tron""fogo""filecoin""stacks""multiversx""tezos""cardano""hedera""algorand""astar""polkadot-assethub""kusama-assethub""starknet""near""xrpl""ton""aptos""iota""movement""supra""allora""axelar""babylon""band""celestia""cosmoshub""dydx""dymension""fetch""injective""kava""mantra""osmosis""saga""secret""shentu""terra""terra-classic""thorchain""zigchain""0g""abstract""apechain""arbitrum-nova""berachain""bsc""celo""chiliz""core""cronos""cyber""ethereum-classic""ethereumpow""etherlink""flare""flow-evm""fraxtal""fuse""gnosis""gravity""gunz""hemi""immutable-zkevm""injective-evm""ink""kaia""katana""kava-evm""linea""lisk""lumia""manta""mantle""megaeth""metis""mitosis""mode""monad""morph""opbnb""pharos""plasma""plume""robinhood""ronin""rootstock""scroll""sei-evm""somnia""soneium""telos""unichain""vana""viction""wemix""worldchain""xai""xdc""xertra""xlayer""zetachain""zilliqa-evm""zksync""ethereum-sepolia""base-sepolia""arbitrum-sepolia""optimism-sepolia""polygon-amoy""avalanche-fuji""hyperevm-testnet""sonic-testnet""solana-devnet""stellar-testnet""osmosis-testnet""aptos-testnet""supra-testnet""iota-testnet""ton-testnet""xrpl-testnet""near-testnet""fogo-testnet""filecoin-calibration""stacks-testnet""multiversx-devnet""tezos-shadownet""cardano-preprod""hedera-testnet""algorand-testnet""shibuya""paseo-assethub""starknet-sepolia""tron-nile""sui-testnet"
balanceBaseUnits?string

Decimal string in the wallet network's native-asset base units (wei, lamports, stroops or MIST).

Match^(0|[1-9][0-9]*)$
health*string
ready*boolean

True only when an active policy, a valid reading from the last 15 minutes at or above the threshold, and healthy monitoring all hold. Check it before a transaction that spends gas (for example a deposit sweep).

readyBlockedBy?string
Value in"NO_ACTIVE_POLICY""UNOBSERVED""BELOW_THRESHOLD""STALE_READING""MONITOR_DEGRADED"
monitoring?
curl -X GET 'https://api.gastanker.xyz/v1/wallets/string/gas'
{  "networkId": "ethereum",  "balanceBaseUnits": "string",  "health": "string",  "ready": true,  "readyBlockedBy": "NO_ACTIVE_POLICY",  "monitoring": {    "status": "healthy",    "lastAttemptAt": "string",    "lastSuccessfulAt": "string",    "lastSource": "string",    "lastBlockNumber": "string",    "consecutiveFailures": 0  }}