Documentation ¶
Index ¶
- type CreateAccountLikeInstruction
- type SolanaInstruction
- type Tx
- func (tx *Tx) AddSignatures(signatures ...xc.TxSignature) error
- func (tx *Tx) AddTransientSigner(transientSigner solana.PrivateKey)
- func (tx Tx) GetCreateAccounts() []*CreateAccountLikeInstruction
- func (tx Tx) GetDeactivateStakes() []*stake.Deactivate
- func (tx Tx) GetDelegateStake() []*stake.DelegateStake
- func (tx Tx) GetSignatures() []xc.TxSignature
- func (tx Tx) GetSplitStakes() []*stake.Split
- func (tx Tx) GetStakeWithdraws() []*stake.Withdraw
- func (tx Tx) GetSystemTransfers() []*system.Transfer
- func (tx Tx) GetTokenTransferCheckeds() []*token.TransferChecked
- func (tx Tx) GetTokenTransfers() []*token.Transfer
- func (tx Tx) GetVoteWithdraws() []*vote.Withdraw
- func (tx Tx) Hash() xc.TxHash
- func (tx Tx) RecentBlockhash() string
- func (tx Tx) Serialize() ([]byte, error)
- func (tx Tx) Sighashes() ([]xc.TxDataToSign, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAccountLikeInstruction ¶
type CreateAccountLikeInstruction struct { NewAccount solana.PublicKey Lamports uint64 }
type SolanaInstruction ¶
type SolanaInstruction interface {
Obtain(def *bin.VariantDefinition) (typeID bin.TypeID, typeName string, impl interface{})
}
type Tx ¶
type Tx struct { SolTx *solana.Transaction ParsedSolTx *rpc.ParsedTransaction // similar, but different type // contains filtered or unexported fields }
Tx for Solana, encapsulating a solana.Transaction and other info
func (*Tx) AddSignatures ¶
func (tx *Tx) AddSignatures(signatures ...xc.TxSignature) error
AddSignatures adds a signature to Tx
func (*Tx) AddTransientSigner ¶
func (tx *Tx) AddTransientSigner(transientSigner solana.PrivateKey)
Some instructions on solana require new accounts to sign the transaction in addition to the funding account. These are transient signers are not sensitive and the key material only needs to live long enough to sign the transaction.
func (Tx) GetCreateAccounts ¶
func (tx Tx) GetCreateAccounts() []*CreateAccountLikeInstruction
func (Tx) GetDeactivateStakes ¶
func (tx Tx) GetDeactivateStakes() []*stake.Deactivate
func (Tx) GetDelegateStake ¶
func (tx Tx) GetDelegateStake() []*stake.DelegateStake
func (Tx) GetSignatures ¶
func (tx Tx) GetSignatures() []xc.TxSignature
func (Tx) GetSplitStakes ¶
func (Tx) GetStakeWithdraws ¶
func (Tx) GetSystemTransfers ¶
func (Tx) GetTokenTransferCheckeds ¶
func (tx Tx) GetTokenTransferCheckeds() []*token.TransferChecked
func (Tx) GetTokenTransfers ¶
func (Tx) GetVoteWithdraws ¶
func (Tx) RecentBlockhash ¶
RecentBlockhash returns the recent block hash used as a nonce for a Solana tx
Click to show internal directories.
Click to hide internal directories.