omni_listtransactions
omni_listtransactions
调用返回钱包交易清单,可以使用地址或区块进行过滤。
调用参数
- txid:地址过滤器,字符串,可选
- count:返回结果数量,数值,可选,默认值:10
- skip:跳过结果数量,数值,可选,默认值:0
- startblock:检索的起始区块,数值,可选,默认值:0
- endblock :检索的最后区块,数值,可选,默认值:999999999
返回结果
omni_listtransactions
调用返回如下数组:
[ // (array of JSON objects)
{
"txid" : "hash", // (string) the hex-encoded hash of the transaction
"sendingaddress" : "address", // (string) the Bitcoin address of the sender
"referenceaddress" : "address", // (string) a Bitcoin address used as reference (if any)
"ismine" : true|false, // (boolean) whether the transaction involves an address in the wallet
"confirmations" : nnnnnnnnnn, // (number) the number of transaction confirmations
"fee" : "n.nnnnnnnn", // (string) the transaction fee in bitcoins
"blocktime" : nnnnnnnnnn, // (number) the timestamp of the block that contains the transaction
"valid" : true|false, // (boolean) whether the transaction is valid
"positioninblock" : n, // (number) the position (index) of the transaction within the block
"version" : n, // (number) the transaction version
"type_int" : n, // (number) the transaction type as number
"type" : "type", // (string) the transaction type as string
[...] // (mixed) other transaction type specific properties
},
...
]
示例代码
~$ omnicore-cli "omni_listtransactions"