跳转到主要内容
POST
/
getAllDomains
curl --request POST \
  --url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getAllDomains",
  "params": [
    "9aoUCn5J4sxhvYERCVwVnakPQxyXTHQVXe86CUJYxY8p"
  ]
}
'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": {
      "slot": 423867852,
      "apiVersion": "3.0.0"
    },
    "value": {
      "wallet": "9aoUCn5J4sxhvYERCVwVnakPQxyXTHQVXe86CUJYxY8p",
      "domains": [
        "solanatracker.sol",
        "othername.sol"
      ]
    }
  }
}
⚡ 由 Solana Ridge DB 驱动返回钱包拥有的所有 .sol 域名,包括直接拥有和代币化 NFT 域名。当你需要钱包的完整域名列表而不仅是主收藏域名时使用。
此方法每次调用消耗 1 积分

授权

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