跳至主要內容

交易

tokenview大约 2 分钟

交易

交易详情

GET https://services.tokenview.io/vipapi/tx/neo/{交易哈希}?apikey={apikey}

参数

Request

curl --location https://services.tokenview.io/vipapi/tx/neo/0x93a2280027040ab8c801708d28ae31afe8a0920a782303cc630411d78ada5d7e?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "appendixData": null,
        "pending": null,
        "type": "tx",
        "network": "NEO",
        "block_no": 9078265,
        "height": 9078265,
        "blockHash": "0xe018cc611976be8b6665bd61d9aaa800eaf240af98e652117ba689c92ac3ea41",
        "index": 21,
        "time": 1649927053,
        "txid": "0x93a2280027040ab8c801708d28ae31afe8a0920a782303cc630411d78ada5d7e",
        "fee": null,
        "tType": "InvocationTransaction",
        "confirmations": 8866,
        "size": 285,
        "sysFee": "0",
        "netFee": "0",
        "gas": "0",
        "script": "05002e597611144b721e06b50cc74e68b417716e3b099fb99757a814705f7d1f696624e9f74a8396e9b33cfd33670f1053c1087472616e7366657267e345419e7377286ee5b0a39b56e30f6213ab9e4d",
        "scripts": [
            {
                "invocation": "409b6f0d3fc687df4c9ba779a5be52066880b8cc2b9f259c068f19f51eb4e3236bc7cd25f00afba3be8c256b938c4cf5f660cede41214a6961a541e62e481ba45b",
                "verification": "2102425fe12cc2db89318f6e26c2f8629cadc202e45f4a26be90eaf8cab8e5695e87ac"
            }
        ],
        "from": [],
        "to": [],
        "tokenTransfer": [
            {
                "index": null,
                "block_no": null,
                "token": null,
                "asset": null,
                "tokenAddr": "0x4d9eab13620fe3569ba3b0e56e2877739e4145e3",
                "tokenSymbol": "FLM",
                "tokenDecimals": "8",
                "time": 1649927053,
                "txid": "0x93a2280027040ab8c801708d28ae31afe8a0920a782303cc630411d78ada5d7e",
                "tokenInfo": {
                    "appendixData": null,
                    "pending": null,
                    "h": "0x4d9eab13620fe3569ba3b0e56e2877739e4145e3",
                    "p": null,
                    "f": "Flamingo",
                    "s": "FLM",
                    "d": "8",
                    "t": null,
                    "c": "NEP5",
                    "i": null,
                    "o": null,
                    "l": null
                },
                "confirmations": null,
                "type": null,
                "from": "AS23ifAE5YRQ95HweVnzRmjTtDYPSYjoDC",
                "to": "ANeo2toNeo3MigrationAddressxwPB2Hz",
                "fromAlias": null,
                "toAlias": null,
                "value": "75000000000",
                "valueIsNft": null,
                "fromIsContract": null,
                "toIsContract": null,
                "amount": null
            }
        ]
    }
}

应答字段说明

"data": {
        "appendixData": null,
        "pending": null,
        "type": "tx",  // 返回的记录类型:交易transaction
        "network": "NEO",  // 公链符号
        "block_no": 9078265, // 区块高度
        "height": 9078265,   // 区块高度(Deprecated)
        "blockHash": "0xe018cc611976be8b6665bd61d9aaa800eaf240af98e652117ba689c92ac3ea41", // 区块hash
        "index": 21,
        "time": 1649927053, // 区块生成时间UTC
        "txid": "0x93a2280027040ab8c801708d28ae31afe8a0920a782303cc630411d78ada5d7e", // 此交易的hash
        "fee": null,
        "tType": "InvocationTransaction", // 交易类型
        "confirmations": 8866, // 确认数
        "size": 285,  // 大小 (Bytes)
        "sysFee": "0", 
        "netFee": "0",
        "gas": "0",
        "script": "05002e597611144b721e06b50cc74e68b417716e3b099fb99757a814705f7d1f696624e9f74a8396e9b33cfd33670f1053c1087472616e7366657267e345419e7377286ee5b0a39b56e30f6213ab9e4d",
        "scripts": [
            {
                "invocation": "409b6f0d3fc687df4c9ba779a5be52066880b8cc2b9f259c068f19f51eb4e3236bc7cd25f00afba3be8c256b938c4cf5f660cede41214a6961a541e62e481ba45b",
                "verification": "2102425fe12cc2db89318f6e26c2f8629cadc202e45f4a26be90eaf8cab8e5695e87ac"
            }
        ],
        "from": [],
        "to": [],
        "tokenTransfer": [
            {
                "index": null,
                "block_no": null,
                "token": null,
                "asset": null,
                "tokenAddr": "0x4d9eab13620fe3569ba3b0e56e2877739e4145e3",  // 代币名称或者hash地址
                "tokenSymbol": "FLM",  // 代币符号 symbol
                "tokenDecimals": "8",  // 代币精度 decimals
                "time": 1649927053,
                "txid": "0x93a2280027040ab8c801708d28ae31afe8a0920a782303cc630411d78ada5d7e", // 此交易的hash
                "tokenInfo": {
                    "appendixData": null,
                    "pending": null,
                    "h": "0x4d9eab13620fe3569ba3b0e56e2877739e4145e3",  // 代币hash地址
                    "p": null,
                    "f": "Flamingo",   // 代币全称 name
                    "s": "FLM",        // 代币符号 symbol
                    "d": "8",          // 代币精度 decimals
                    "t": null,
                    "c": "NEP5",       // 代币类型
                    "i": null,
                    "o": null,
                    "l": null
                },
                "confirmations": null,
                "type": null,
                "from": "AS23ifAE5YRQ95HweVnzRmjTtDYPSYjoDC", // 发起交易的地址hash
                "to": "ANeo2toNeo3MigrationAddressxwPB2Hz",   // 被动交易的地址hash
                "fromAlias": null,
                "toAlias": null,
                "value": "75000000000",   转账金额(单位是代币),需要除以10的decimals次方才是真实数字
                "valueIsNft": null,
                "fromIsContract": null,
                "toIsContract": null,
                "amount": null
            }
        ]
    }

交易确认数

GET https://services.tokenview.io/vipapi/tx/confirmation/neo/{交易哈希}?apikey={apikey}

参数

Request

curl --location https://services.tokenview.io/vipapi/tx/confirmation/neo/0x93a2280027040ab8c801708d28ae31afe8a0920a782303cc630411d78ada5d7e?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "appendixData": null,
        "pending": null,
        "network": "NEO",
        "txId": "0x93a2280027040ab8c801708d28ae31afe8a0920a782303cc630411d78ada5d7e",
        "confirmation": 8866
    }
}

应答字段说明

"data": {
        "appendixData": null,
        "pending": null,
        "network": "NEO", // 公链的简称
        "txId": "0x93a2280027040ab8c801708d28ae31afe8a0920a782303cc630411d78ada5d7e", // 交易hash
        "confirmation": 8866 // 此交易的确认数
    }

上次编辑于: