Documentation ¶
Index ¶
- Constants
- 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
- type MoralisPriceResponse
- type SOLWallet
- 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
Constants ¶
View Source
const ( Failed = -1 Pending = 1 Success = 2 )
Variables ¶
This section is empty.
Functions ¶
func FromLamports ¶
func GetSolPriceFromMoralis ¶
func GetSolPriceMobula ¶
func GetTransactionInfo ¶
func GetTransactionList ¶
func GetTransactionList(addr string, rpcUrl string) (rpc.GetConfirmedSignaturesForAddress2Result, error)
func ToLamports ¶
Types ¶
type MoralisPriceResponse ¶
type MoralisPriceResponse struct {
UsdPrice float64 `json:"usdPrice"`
}
type SOLWallet ¶
func CreateWallet ¶
func CreateWallet() *SOLWallet
func ImportFromPrivateKey ¶
func (*SOLWallet) GetAirdrop ¶
func (*SOLWallet) TransferSPLToken ¶
type TransactionModel ¶
Click to show internal directories.
Click to hide internal directories.