跳转到主要内容
GET
/
v1
/
spl
/
balance
Balance
curl --request GET \
  --url https://payments.magicblock.app/v1/spl/balance
{
  "address": "Bt9oNR5cCtnfuMmXgWELd6q5i974PdEMQDUE55nBC57L",
  "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "ata": "3rXKwQ1kpjBd5tdcco32qsvqUh1BnZjcYnS5kYrP7AYE",
  "location": "base",
  "balance": "1000000"
}

Documentation Index

Fetch the complete documentation index at: https://docs.magicblock.gg/llms.txt

Use this file to discover all available pages before exploring further.

查询参数

address
string
必填

Owner wallet pubkey.

示例:

"Bt9oNR5cCtnfuMmXgWELd6q5i974PdEMQDUE55nBC57L"

mint
string
必填

SPL mint pubkey.

示例:

"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"

cluster

Optional. Use mainnet for BASE_RPC_URL and EPHEMERAL_RPC_URL, devnet for BASE_DEVNET_RPC_URL and EPHEMERAL_DEVNET_RPC_URL, or provide a custom http(s) RPC URL to override the base RPC while keeping the configured ephemeral RPC.

可用选项:
mainnet,
devnet
示例:

"mainnet"

响应

Base-chain token balance

address
string
必填
mint
string
必填
ata
string
必填
location
enum<string>
必填
可用选项:
base,
ephemeral
balance
string
必填

Base-unit balance as a string.