class BitShares::Transaction

Overview

交易构造器。

Defined in:

bitshares-crystal/transaction.cr

Constant Summary

Log = ::Log.for("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(wait_broadcast_callback = true) #

广播到链上。


[View source]