Vaults

Get a wallet's network fees on Solana

What each action a wallet signs costs it in network fees and rent. A transaction built with an API key is always paid by the wallet.

GET
/api/solana/sponsorship

Authorization

ApiKeyAuth
X-API-Key<token>

Your API key. Authorizing a swap or opening a market takes a key issued to your integration, and the shared key the docs fill in reads and quotes only.

In: header

Query Parameters

wallet?string

The wallet to read, as a base58 address. Send this or owner.

owner?string

Another name for wallet.

mint?string

The asset a withdrawal or swap receives, so a missing token account is counted.

addLedgerSlot?string

true prices a deposit that first adds a ledger slot. The slot's rent is not included.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/solana/sponsorship"
{  "owner": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",  "wallet": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",  "walletLamports": "50000000",  "actions": {    "deposit": {      "payer": "owner",      "reason": "requested",      "lamports": "10110"    },    "withdraw": {      "payer": "owner",      "reason": "requested",      "lamports": "2049650"    },    "swap": {      "payer": "owner",      "reason": "requested",      "lamports": "2055680"    },    "commit": {      "payer": "owner",      "reason": "requested",      "lamports": "2049370"    },    "uncommit": {      "payer": "owner",      "reason": "requested",      "lamports": "10090"    }  }}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}