eth_accounts

返回客户端拥有的地址列表。

Request

curl https://eth-mainnet.solarpath.io/v1/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "id": 1, "method": "eth_accounts", "params": []}'

Response

结果为十六进制数组,表示拥有的地址。

{
  "id": 1,
  "jsonrpc": "2.0",
  "result": []
}

虽然 SolarPath 支持此 JSON-RPC 方法,但它不会返回任何帐户地址。相反,您应使用 eth_sendRawTransaction 发送签名的原始交易。

最后更新于