class BitShares::FastTransaction

Overview

=> 快速交易构造器 => 目的:减少网络交互,尽快广播。 => 和普通的区别 => 1、不会设置 fee => 2、会查询 head block info => 3、不会等待 callback

Defined in:

bitshares-crystal/fast_transaction.cr

Constant Summary

Log = ::Log.for("fast.tx")

Constructors

Instance Method Summary

Constructor Detail

def self.new(client : Client) #

[View source]

Instance Method Detail

def add_operation(opcode : Blockchain::Operations, opdata) #

添加 operation 到当前交易对象。


[View source]
def add_sign_key(public_key : String, private_key : Secp256k1Zkp::PrivateKey) #

添加交易需要签名的私钥,不添加则默认使用钱包中的所有私钥进行签名。


[View source]
def add_sign_keys(sign_keys_hash : Hash(String, Secp256k1Zkp::PrivateKey)) #

添加交易需要签名的私钥,不添加则默认使用钱包中的所有私钥进行签名。


[View source]
def broadcast(data_dynamic_global_properties) : Bytes #

广播到链上。广播成功返回 txid,失败抛出异常。 dynamic_global_properties - 即:2.1.0 对象


[View source]