Skip to main content
GET
/
v1
/
spl
/
challenge
Challenge
curl --request GET \
  --url https://payments.magicblock.app/v1/spl/challenge
{
  "challenge": "1234567890"
}

Query Parameters

pubkey
string
required

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

Example:

"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.

Available options:
mainnet,
devnet
Example:

"mainnet"

mock
boolean

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

Example:

false

Response

Challenge string

challenge
string
required

The challenge string generated by the Private Ephemeral Rollup.