跳转到主要内容
POST
Send Transaction

授权

Authorization
string
header
必填

Token obtained from the /v1/spl/login flow.

请求体

application/json
transactionBase64
string
必填

The signed, serialized transaction encoded as base64.

Minimum string length: 1
sendTo
enum<string>
必填

Where to submit. Use the sendTo value returned by the build endpoint.

可用选项:
base,
ephemeral
sendRpcEndpoint
string<uri>

Optional. Explicit ephemeral RPC endpoint. Only valid when sendTo is ephemeral.

cluster

Optional. Cluster selector or custom http(s) RPC URL.

可用选项:
mainnet,
devnet,
mainnet-private,
devnet-private
示例:

"mainnet"

confirm
boolean

Optional. Defaults to false. When true, the API confirms the transaction and requires recentBlockhash and lastValidBlockHeight.

recentBlockhash
string
必填 if confirm = true

Required when confirm is true.

lastValidBlockHeight
integer
必填 if confirm = true

Required when confirm is true.

必填范围: x >= 0
skipPreflight
boolean

Optional. Skip preflight checks on submission.

maxRetries
integer

Optional. Maximum number of send retries.

必填范围: x >= 0

响应

Submission result

signature
string
必填
sendTo
enum<string>
必填
可用选项:
base,
ephemeral
confirmed
boolean
必填
confirmationRpcEndpoint
string<uri>
必填
confirmationRequiresAuthToken
boolean
必填