Documentation ¶
Index ¶
- type ResultDecoder
- type Signer
- type Transaction
- func GetFromID(ctx context.Context, client api.WalletClient, ID string, checkConfirm bool) (*Transaction, error)
- func New(client api.WalletClient, tx *core.Transaction) *Transaction
- func NewWithDecoder(client api.WalletClient, tx *core.Transaction, resultDecoder ResultDecoder) *Transaction
- func NewWithInfo(client api.WalletClient, tx *core.Transaction, info *core.TransactionInfo) *Transaction
- func (tx *Transaction) CheckConfirmation() error
- func (tx *Transaction) GetResult() ([]any, error)
- func (tx *Transaction) Send(ctx context.Context) error
- func (tx *Transaction) Sign(signer Signer) error
- func (tx *Transaction) SignAndSend(ctx context.Context, signer Signer) error
- func (tx *Transaction) WaitConfirmation() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResultDecoder ¶
type Transaction ¶
type Transaction struct { *core.Transaction Confirmed bool Txid []byte Info *core.TransactionInfo // contains filtered or unexported fields }
func GetFromID ¶
func GetFromID(ctx context.Context, client api.WalletClient, ID string, checkConfirm bool) (*Transaction, error)
func New ¶
func New(client api.WalletClient, tx *core.Transaction) *Transaction
func NewWithDecoder ¶
func NewWithDecoder(client api.WalletClient, tx *core.Transaction, resultDecoder ResultDecoder) *Transaction
func NewWithInfo ¶
func NewWithInfo(client api.WalletClient, tx *core.Transaction, info *core.TransactionInfo) *Transaction
func (*Transaction) CheckConfirmation ¶
func (tx *Transaction) CheckConfirmation() error
func (*Transaction) GetResult ¶
func (tx *Transaction) GetResult() ([]any, error)
func (*Transaction) Sign ¶
func (tx *Transaction) Sign(signer Signer) error
func (*Transaction) SignAndSend ¶
func (tx *Transaction) SignAndSend(ctx context.Context, signer Signer) error
func (*Transaction) WaitConfirmation ¶
func (tx *Transaction) WaitConfirmation() error
Click to show internal directories.
Click to hide internal directories.