メインコンテンツへスキップ
GET
/
v1
/
spl
/
challenge
Challenge
curl --request GET \
  --url https://payments.magicblock.app/v1/spl/challenge
{
  "challenge": "1234567890"
}

クエリパラメータ

pubkey
string
必須

The public key of the wallet that will read private data.

:

"Bt9oNR5cCtnfuMmXgWELd6q5i974PdEMQDUE55nBC57L"

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"

mock
boolean

Optional. When true, the API uses a mock challenge for testing. Defaults to false.

:

false

レスポンス

Challenge string

challenge
string
必須

The challenge string generated by the Private Ephemeral Rollup.