Documentation ¶
Index ¶
- type JitoTipInfo
- type TokenDataType
- type Wallet
- func (t *Wallet) BuildTx(privObj solana.PrivateKey, latestBlockhash *solana.Hash, ...) (*solana.Transaction, error)
- func (t *Wallet) GetJitoTipInfo() (*JitoTipInfo, error)
- func (t *Wallet) GetTokenData(tokenAddress solana.PublicKey) (*TokenDataType, error)
- func (t *Wallet) NewAddress() (address_ string, priv_ string)
- func (t *Wallet) NewWSClient(ctx context.Context) (*ws.Client, error)
- func (t *Wallet) RPCClient() *rpc.Client
- func (t *Wallet) SendAndConfirmTransaction(ctx context.Context, tx *solana.Transaction, skipPreflight bool, urls []string) (meta_ *rpc.TransactionMeta, timestamp_ uint64, err_ error)
- func (t *Wallet) SendByJitoAndConfirmTransaction(ctx context.Context, tx *solana.Transaction) (meta_ *rpc.TransactionMeta, timestamp_ uint64, err_ error)
- func (t *Wallet) SendTx(ctx context.Context, privObj solana.PrivateKey, latestBlockhash *solana.Hash, ...) (meta_ *rpc.TransactionMeta, tx_ *solana.Transaction, timestamp_ uint64, ...)
- func (t *Wallet) SendTxByJito(ctx context.Context, privObj solana.PrivateKey, latestBlockhash *solana.Hash, ...) (meta_ *rpc.TransactionMeta, tx_ *solana.Transaction, timestamp_ uint64, ...)
- func (t *Wallet) TokenBalance(address solana.PublicKey, tokenAddress solana.PublicKey) (*type_.TokenAmountInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JitoTipInfo ¶ added in v0.5.5
type JitoTipInfo struct { Time string `json:"time"` LandedTips25thPercentile float64 `json:"landed_tips_25th_percentile"` LandedTips50thPercentile float64 `json:"landed_tips_50th_percentile"` LandedTips75thPercentile float64 `json:"landed_tips_75th_percentile"` LandedTips95thPercentile float64 `json:"landed_tips_95th_percentile"` LandedTips99thPercentile float64 `json:"landed_tips_99th_percentile"` EMALandedTips50thPercentile float64 `json:"ema_landed_tips_50th_percentile"` }
type TokenDataType ¶ added in v0.7.2
type TokenDataType struct { Parsed struct { Info struct { Decimals uint64 `json:"decimals"` FreezeAuthority string `json:"freezeAuthority"` IsInitialized bool `json:"isInitialized"` MintAuthority string `json:"mintAuthority"` Supply string `json:"supply"` } `json:"info"` Type string `json:"type"` } `json:"parsed"` Program string `json:"program"` Space uint64 `json:"space"` }
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) GetJitoTipInfo ¶ added in v0.5.5
func (t *Wallet) GetJitoTipInfo() (*JitoTipInfo, error)
func (*Wallet) GetTokenData ¶ added in v0.7.2
func (t *Wallet) GetTokenData( tokenAddress solana.PublicKey, ) (*TokenDataType, error)
func (*Wallet) NewAddress ¶ added in v0.0.4
func (*Wallet) NewWSClient ¶ added in v0.5.3
func (*Wallet) SendAndConfirmTransaction ¶
func (*Wallet) SendByJitoAndConfirmTransaction ¶ added in v0.5.4
func (*Wallet) SendTxByJito ¶ added in v0.5.4
func (t *Wallet) SendTxByJito( ctx context.Context, privObj solana.PrivateKey, latestBlockhash *solana.Hash, instructions []solana.Instruction, unitPrice uint64, unitLimit uint64, jitoTipAmountWithDecimals uint64, jitoAccount solana.PublicKey, ) ( meta_ *rpc.TransactionMeta, tx_ *solana.Transaction, timestamp_ uint64, err_ error, )
func (*Wallet) TokenBalance ¶ added in v0.5.9
func (t *Wallet) TokenBalance( address solana.PublicKey, tokenAddress solana.PublicKey, ) (*type_.TokenAmountInfo, error)
Click to show internal directories.
Click to hide internal directories.