Skip to main content
POST
getAllDomains
返回钱包拥有的所有 .sol 域名,包括直接拥有和代币化 NFT 域名。当你需要钱包的完整域名列表而不仅是主收藏域名时使用。
此方法每次调用消耗 1 积分。
请求配置和错误处理见 RPC 快速入门。计费见积分与限制。

授权

api_key
string
query
必填

请求体

application/json
jsonrpc
enum<string>
默认值:2.0
必填

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string
默认值:1
必填

A unique identifier for the request.

示例:

"1"

method
enum<string>
默认值:getAllDomains
必填

The name of the RPC method to invoke.

可用选项:
getAllDomains
示例:

"getAllDomains"

params
string[]
必填
Required array length: 1 element

Wallet public key.

响应

Successful response.

jsonrpc
enum<string>
可用选项:
2.0
id
string
result
object