Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Add getunclaimedgas #1115

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions docs/en-us/reference/rpc/latest-version/api/getunclaimedgas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# getunclaimedgas method

Returns the unclaimed GAS with the specified address.

## Parameter Description

- address: Specified address.

## Example

Request body:

```json
{
"jsonrpc": "2.0",
"method": "getunclaimedgas",
"params": ["NNU67Fvdy3LEQTM374EJ9iMbCRxVExgM8Y"],
"id": 1
}
```

Response body:

```json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"unclaimed": "9693738",
"address": "NNU67Fvdy3LEQTM374EJ9iMbCRxVExgM8Y"
}
}
```
33 changes: 33 additions & 0 deletions docs/zh-cn/reference/rpc/latest-version/api/getunclaimedgas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# getunclaimedgas 方法

返回指定地址未提取的 GAS。

## 参数说明

- address:要查询的地址。

## 调用示例

请求正文:

```json
{
"jsonrpc": "2.0",
"method": "getunclaimedgas",
"params": ["NNU67Fvdy3LEQTM374EJ9iMbCRxVExgM8Y"],
"id": 1
}
```

响应正文:

```json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"unclaimed": "9693738",
"address": "NNU67Fvdy3LEQTM374EJ9iMbCRxVExgM8Y"
}
}
```