Versions in this module Expand all Collapse all v1 v1.0.1 Dec 3, 2024 Changes in this version + const Failed + const Pending + const Success + func FromLamports(v uint64) *big.Float + func GetBalance(addr string, rpcUrl string) (*big.Float, error) + func GetNFTAddrFromTransaction(signature, rpcUrl string) (int, string, error) + func GetSolPriceFromMoralis(key string) (float64, error) + func GetSolPriceMobula(key string) (float64, error) + func GetTransactionInfo(signature string, rpcUrl string) (state int, fromVal string, toVal string, amountVal uint64, err error) + func GetTransactionList(addr string, rpcUrl string) (rpc.GetConfirmedSignaturesForAddress2Result, error) + func GetTransactionSate(sig string, rpcUrl string) (bool, error) + func ToLamports(v *big.Float) uint64 + type Message struct + AccountKeys []string + type MoralisPriceResponse struct + UsdPrice float64 + type SOLWallet struct + PrivateKey string + PublicKey string + func CreateWallet() *SOLWallet + func ImportFromPrivateKey(filePath string) (*SOLWallet, error) + func (w *SOLWallet) GetAirdrop(sol float64, rpcUrl string) (string, error) + func (w *SOLWallet) TransferSPLToken(tokenSource string, to string, amount uint64, rpcUrl string) (string, error) + func (w *SOLWallet) TransferToWaitConfirm(to string, amount uint64, rpcUrl, wsUrl string) (string, error) + func (w *SOLWallet) TransferToWithoutConfirm(to string, amount uint64, rpcUrl string) (string, error) + type TransactionModel struct + Message Message + Signature string