omni_listpendingtransactions
omni_listpendingtransactions
调用返回内存池中等待确认的omni交易清单。
注意:待定交易的有效性是不确定的,因此内存池随时可能发生变化。建议在 确认后检查交易,待定的交易应当被视为无效。
调用参数
- address:要过滤的地址,字符串,可选,默认值:""表示不使用过滤器
返回结果
[ // (array of JSON objects)
{
"txid" : "hash", // (string) 16进制编码的交易哈希
"sendingaddress" : "address", // (string) 发送发比特币地址
"referenceaddress" : "address", // (string) 作为参照的比特币地址
"ismine" : true|false, // (boolean) 交易是否与钱包内地址相关
"fee" : "n.nnnnnnnn", // (string) 交易手续费
"version" : n, // (number) 交易版本
"type_int" : n, // (number) 交易类型编码
"type" : "type", // (string) 交易类型名称字符串
[...] // (mixed) 交易类型特定的属性
},
...
]
示例代码
~$ omnicore-cli "omni_listpendingtransactions"