UnconfirmedTxs - 获取未确认交易
UnconfirmedTxs
调用返回未确认交易
API请求
GET /unconfirmed_txs
``
## API响应
返回JSON对象,结构如下:
- jsonrpc:JSONRPC版本,固定为"2.0"
- id:API请求的ID编号
- error:错误描述信息
- result:结果对象
- txs:未确认交易数组
- n_txs:未确认交易数量
## 示例代码
使用curl调用Tx接口,查询指定的交易:
~$ curl 'localhost:26657/unconfirmed_txs'
响应结果:
{
"error": "",
"result": {
"txs": [],
"n_txs": "0"
},
"id": "",
"jsonrpc": "2.0"
}
```