메인 콘텐츠로 건너뛰기
GET
/
v1
/
spl
/
private-balance
Private Balance
curl --request GET \
  --url https://payments.magicblock.app/v1/spl/private-balance \
  --header 'authorization: <authorization>'
{
  "address": "Bt9oNR5cCtnfuMmXgWELd6q5i974PdEMQDUE55nBC57L",
  "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "ata": "3rXKwQ1kpjBd5tdcco32qsvqUh1BnZjcYnS5kYrP7AYE",
  "location": "ephemeral",
  "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.

헤더

authorization
string
필수

Required. Authentication token issued by /v1/spl/login. Format: Bearer <token>.

예시:

"Bearer 1234567890"

쿼리 매개변수

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"

응답

Ephemeral token balance

address
string
필수
mint
string
필수
ata
string
필수
location
enum<string>
필수
사용 가능한 옵션:
base,
ephemeral
balance
string
필수

Base-unit balance as a string.