Skip to main content

List Gas Sponsor Wallets

Lists, per network, the platform wallet that sponsors users' gas. When a user's wallet holds too little of a network's native currency to pay for a transaction it has to sign, the platform sends native currency to it from that network's sponsor wallet and then runs the transaction. The sponsor wallet is the only source: on a network with no sponsor configured, gas cannot be sent and the transaction waiting for it fails. No other wallet is picked instead.

The list has one row per network of every chain on which the platform node holds a wallet, sorted by chain name and then network name. Networks on chains where the platform holds no wallet are left out: no wallet could sponsor them. A row with an empty wallet_id and address is a network with no sponsor configured.

Gas sponsorship is a platform-wide setting: only an API client of the platform node (the root of the node hierarchy) may call this. Any other client is refused with 10005. Set or clear a sponsor with Set Gas Sponsor Wallet.

Required permission: node:summary:view

Request​

GET /v2/gas-sponsor-wallets

Parameters​

NameTypeInDescription
pageintegerqueryRequired. Page number, starting at 1
per_pageintegerqueryRequired. Items per page, 1–100
searchstringqueryCase-insensitive partial match on the network name or the chain name. Applied before paging, so total counts the matches

Headers​

NameDescription
AuthorizationRequired. Bearer <access_token>

Example​

curl --request GET \
--url '{{baseUrl}}/v2/gas-sponsor-wallets?page=1&per_page=20' \
--header 'Authorization: Bearer <access_token>'

Response​

{
"data": [
{
"network_id": "6740e0a20000000000000101",
"network_name": "Ethereum",
"chain_id": "6740e0a10000000000000101",
"chain_name": "EVM",
"address": "",
"wallet_id": ""
},
{
"network_id": "6740e0a20000000000000102",
"network_name": "Polygon",
"chain_id": "6740e0a10000000000000101",
"chain_name": "EVM",
"address": "0x4A096E485281DE1B8bF11A511D39d5B128EF7C4b",
"wallet_id": "6a89b68e0c46ca4c941271aa"
}
],
"total": 2,
"page": 1,
"per_page": 20
}

Response Fields​

FieldTypeDescription
dataarrayThe networks on this page
data[].network_idstringNetwork id from Get Networks (24-character hex)
data[].network_namestringNetwork display name
data[].chain_idstringid of the network's chain
data[].chain_namestringChain display name
data[].addressstringAddress of the sponsor wallet. Empty when no sponsor is configured
data[].wallet_idstringId of the platform wallet that sponsors gas on this network. Empty when no sponsor is configured
totalintegerNumber of networks matching search
pageintegerPage number echoed back
per_pageintegerPage size echoed back

Errors​

StatusCodeDescription
40010015page or per_page is missing or out of range — see details
40310005The caller is not a client of the platform node (domain 2)
40010001The platform node was not found (domain 2)
50010000Unexpected server-side failure

See Errors for the error format and common codes.