跳转到主要内容
POST
Login

请求体

application/json
pubkey
string
必填

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

示例:

"Bt9oNR5cCtnfuMmXgWELd6q5i974PdEMQDUE55nBC57L"

challenge
string
必填

The challenge string returned by /v1/spl/challenge.

示例:

"1234567890"

signature
string
必填

The wallet's signature over the challenge string.

示例:

"1234567890"

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 login flow for testing. Defaults to false.

示例:

false

响应

Authentication token

token
string
必填

The authentication token provided by the Private Ephemeral Rollup.