omni_gettransaction
omni_gettransaction
调用获取指定Omni交易的详细信息。
相关开发包:
Java |
C# |
PHP
调用参数
- txid:交易哈希,字符串,必需
返回结果
{
"txid" : "hash", // (string) 16进制编码的交易哈希
"sendingaddress" : "address", // (string) 发送方比特币地址
"referenceaddress" : "address", // (string) 作为参照的比特币地址
"ismine" : true|false, // (boolean) 交易是否与钱包内某个地址相关
"confirmations" : nnnnnnnnnn, // (number) 交易的确认数
"fee" : "n.nnnnnnnn", // (string) 交易手续费
"blocktime" : nnnnnnnnnn, // (number) 包含交易的区块的时间戳
"valid" : true|false, // (boolean) 交易是否有效
"positioninblock" : n, // (number) 交易在区块内的序号
"version" : n, // (number) 交易版本
"type_int" : n, // (number) 交易类型代码
"type" : "type", // (string) 交易类型字符串
[...] // (mixed) 其他交易类型相关的属性
}
示例代码
$ omnicore-cli "omni_gettransaction" "1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"