메인 콘텐츠로 건너뛰기
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.