getPendingTransactions
返回待打包的交易信息
参数
groupID
:unsigned int
- 群组ID
返回值
object
: - 带打包的交易信息,其字段如下:blockHash
:string
- 包含该交易的区块哈希blockNumber
:string
- 包含该交易的区块哈希contractAddress
:string
- 合约地址,如果创建合约,则为”0x0000000000000000000000000000000000000000”from
:string
- 发送者的地址gas
:string
- 发送者提供的gasgasPrice
:string
- 发送者提供的gas的价格hash
:string
- 交易哈希input
:string
- 交易的输入nonce
:string
- 交易的nonce值to
:string
- 接收者的地址,创建合约交易的该值为nullvalue
:string
- 转移的值
- 示例
- // Request
- curl -X POST --data '{"jsonrpc":"2.0","method":"getPendingTransactions","params":[1],"id":1}' http://127.0.0.1:8545 |jq
- // Result
- {
- "id": 1,
- "jsonrpc": "2.0",
- "result": {
- [
- {
- "from": "0x6bc952a2e4db9c0c86a368d83e9df0c6ab481102",
- "gas": "0x9184e729fff",
- "gasPrice": "0x174876e7ff",
- "hash": "0x7536cf1286b5ce6c110cd4fea5c891467884240c9af366d678eb4191e1c31c6f",
- "input": "0x48f85bce000000000000000000000000000000000000000000000000000000000000001bf5bd8a9e7ba8b936ea704292ff4aaa5797bf671fdc8526dcd159f23c1f5a05f44e9fa862834dc7cb4541558f2b4961dc39eaaf0af7f7395028658d0e01b86a37",
- "nonce": "0x65f0d06e39dc3c08e32ac10a5070858962bc6c0f5760baca823f2d5582d03f",
- "to": "0xd6f1a71052366dbae2f7ab2d5d5845e77965cf0d",
- "value": "0x0"
- }
- ]
- }
- }
当前内容版权归 FISCO BCOS 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 FISCO BCOS .