跳至主要內容

合约

tokenview大约 1 分钟

合约

合约创建交易

GET https://services.tokenview.io/vipapi/trx/contract/creator/{合约地址}?apikey={apikey}

参数

Request

curl --location https://services.tokenview.io/vipapi/trx/contract/creator/TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t?apikey={apikey}

Response

{
    "code": 1,
    "msg": "成功",
    "data": {
        "type": "tx",
        "network": "TRX",
        "block_no": 8418292,
        "height": 8418292,
        "blockHash": "00000000008073f4301337e354b2a63258f7cb6044276594efa6c71f7de1a81a",
        "index": 22,
        "time": 1555400628,
        "txid": "3b27180746e68744e5e2e981ae6fa54d502f2aa6e18b8a98824fd1a69069d55a",
        "fee": "30.8569",
        "tType": "Create Smart",
        "confirmations": 38328875,
        "from": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC",
        "to": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
        "value": "0",
        "gasFee": 30677290,
        "gasUsed": 3067729,
        "gasLimit": 100000000,
        "expiration": 1555400682,
        "toIsContract": 1,
        "netFee": 179610
    }
}

应答字段说明

{
    "code": 1,
    "msg": "成功",
    "data": {
        "type": "tx",  // 返回的记录类型:交易transaction
        "network": "TRX", // 公链符号
        "block_no": 8418292, // 合约创建时的块高
        "height": 8418292,   // 合约创建时的块高
        "blockHash": "00000000008073f4301337e354b2a63258f7cb6044276594efa6c71f7de1a81a", // 块hash
        "index": 22,  // 此交易在区块里位置索引
        "time": 1555400628, // 合约创建时的utc时间
        "txid": "3b27180746e68744e5e2e981ae6fa54d502f2aa6e18b8a98824fd1a69069d55a", // 此交易的hash
        "fee": "30.8569",  // 交易的手续费
        "tType": "Create Smart",
        "confirmations": 38328875, // 确认数
        "from": "THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC", // 发起交易的地址hash(如果是转账:就是转出地址;如果是调用合约:就是调用合约的发起方的地址)
        "to": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",   // 被动交易的地址hash(如果是转账:就是转入地址;如果是调用合约:就是被调用合约的地址)
        "value": "0",  // 转账的金额
        "gasFee": 30677290,
        "gasUsed": 3067729,
        "gasLimit": 100000000,
        "expiration": 1555400682,
        "toIsContract": 1, // 如果出现该字段,表示to地址是合约地址
        "netFee": 179610
    }
}

上次编辑于: