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

Commit

Permalink
Add getunclaimedgas (#1115)
Browse files Browse the repository at this point in the history
* add getunclaimedgas

* update en
  • Loading branch information
ProDog authored Jul 30, 2020
1 parent 2b06d99 commit 2231270
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
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"
}
}
```

0 comments on commit 2231270

Please sign in to comment.