withdrawBlockRewards

创建未签名的超级代表奖励提取交易。

用法

tronWeb.transactionBuilder.withdrawBlockRewards(address, options);

参数类型

参数

描述

数据类型

address

可选参数,超级代表提现账号的地址。

String

options

可选参数,多重签名时使用,设置交易多重签名时使用的permissionId。

Integer

返回值类型
Object

示例

//示例 1
>tronWeb.transactionBuilder.withdrawBlockRewards("41f1a0466076c57c9f6d07decc86021ddbf8bae0b2", 1).then(result => console.log(result));
Promise { <pending> }
> {
  visible: false,
  txID: '148f2813c2ad76a2f487b3ef402401f7907a8157d9edd60d50f122a8b324dc4e',
  raw_data: {
    contract: [ [Object] ],
    ref_block_bytes: '37d9',
    ref_block_hash: 'c1d5f084d21183b5',
    expiration: 1581343245000,
    timestamp: 1581343187719
  },
  raw_data_hex: '0a0237d92208c1d5f084d21183b540c8859cfb822e5a53080d124f0a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e576974686472617742616c616e6365436f6e747261637412170a1541f1a0466076c57c9f6d07decc86021ddbf8bae0b27087c698fb822e'
}
         
//示例 2
>tronWeb.transactionBuilder.withdrawBlockRewards("TXzorPLynzrRLyfMNXHsGU86doJCad3bQi", 1).then(result => console.log(result));
Promise { <pending> }
> {
  visible: false,
  txID: '04959cc5e0f1836b92e99063ff5d632293cb4cfef9b443ce493253c8b99f2a8a',
  raw_data: {
    contract: [ [Object] ],
    ref_block_bytes: '38cf',
    ref_block_hash: 'f15243134137dc9c',
    expiration: 1581343983000,
    timestamp: 1581343924685
  },
  raw_data_hex: '0a0238cf2208f15243134137dc9c40988bc9fb822e5a53080d124f0a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e576974686472617742616c616e6365436f6e747261637412170a1541f1a0466076c57c9f6d07decc86021ddbf8bae0b270cdc3c5fb822e'
}