Documentation ¶
Index ¶
- Variables
- func SendAndConfirmTransaction(ctx context.Context, rpcClient *rpc.Client, wsClient *ws.Client, ...) (signature solana.Signature, err error)
- func SendAndConfirmTransactionWithOpts(ctx context.Context, rpcClient *rpc.Client, wsClient *ws.Client, ...) (sig solana.Signature, err error)
- func SendAndConfirmTransactionWithTimeout(ctx context.Context, rpcClient *rpc.Client, wsClient *ws.Client, ...) (signature solana.Signature, err error)
- func WaitForConfirmation(ctx context.Context, wsClient *ws.Client, sig solana.Signature, ...) (confirmed bool, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = fmt.Errorf("timeout")
Functions ¶
func SendAndConfirmTransaction ¶
func SendAndConfirmTransaction( ctx context.Context, rpcClient *rpc.Client, wsClient *ws.Client, transaction *solana.Transaction, ) (signature solana.Signature, err error)
Send and wait for confirmation of a transaction.
func SendAndConfirmTransactionWithOpts ¶
func SendAndConfirmTransactionWithOpts( ctx context.Context, rpcClient *rpc.Client, wsClient *ws.Client, transaction *solana.Transaction, opts rpc.TransactionOpts, timeout *time.Duration, ) (sig solana.Signature, err error)
Send and wait for confirmation of a transaction.
func SendAndConfirmTransactionWithTimeout ¶ added in v1.8.0
func WaitForConfirmation ¶ added in v1.8.0
func WaitForConfirmation( ctx context.Context, wsClient *ws.Client, sig solana.Signature, timeout *time.Duration, ) (confirmed bool, err error)
WaitForConfirmation waits for a transaction to be confirmed. If the transaction was confirmed, but it failed while executing (one of the instructions failed), then this function will return an error (true, error). If the transaction was confirmed, and it succeeded, then this function will return nil (true, nil).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.