Documentation ¶
Index ¶
- type GetTokenAccountsResult
- type SolanaProvider
- func (svc *SolanaProvider) AccountData(mintAddr string) (*token.Mint, error)
- func (svc *SolanaProvider) AccountInfo(accountAddr string) (*rpc.GetAccountInfoResult, error)
- func (svc *SolanaProvider) AlreadyProcessed(sig string) bool
- func (svc *SolanaProvider) Connection() *rpc.Client
- func (svc *SolanaProvider) ConnectionUri(ws bool) string
- func (svc *SolanaProvider) DefaultTimeoutCtx() (context.Context, context.CancelFunc)
- func (svc *SolanaProvider) GetTokenAccountsByOwner(publicKey solana.PublicKey, commitment rpc.CommitmentType, ...) (*rpc.GetTokenAccountsResult, error)
- func (svc *SolanaProvider) GetTokenLargestAccounts(publicKey solana.PublicKey) (out *rpc.GetTokenLargestAccountsResult, err error)
- func (svc *SolanaProvider) ListenLogs(sub *ws.LogSubscription, parseLogs func(solana.Signature, []string))
- func (svc *SolanaProvider) ListenProgram(sub *ws.ProgramSubscription, parseInput func(acc rpc.KeyedAccount))
- func (svc SolanaProvider) LogSubscribe(programId string) (*ws.LogSubscription, error)
- func (svc *SolanaProvider) Message(walletAddr string, nonce string) []byte
- func (svc *SolanaProvider) OwnedNFTTokens(mintAddr string, ownerAddr string) ([]string, error)
- func (svc *SolanaProvider) Owner(mintAddr string) (string, error)
- func (svc SolanaProvider) ProgramSubscribe(programId string) (*ws.ProgramSubscription, error)
- func (svc *SolanaProvider) Transaction(signature solana.Signature) (*rpc.GetTransactionResult, error)
- func (svc *SolanaProvider) Verify(publicKey string, nonce string, signedMessage []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetTokenAccountsResult ¶
type GetTokenAccountsResult struct { rpc.RPCContext Value []rpc.KeyedAccount }
type SolanaProvider ¶
type SolanaProvider struct {
// contains filtered or unexported fields
}
func NewSolanaProvider ¶
func NewSolanaProvider(rpcUrl string) *SolanaProvider
func (*SolanaProvider) AccountData ¶
func (svc *SolanaProvider) AccountData(mintAddr string) (*token.Mint, error)
func (*SolanaProvider) AccountInfo ¶
func (svc *SolanaProvider) AccountInfo(accountAddr string) (*rpc.GetAccountInfoResult, error)
func (*SolanaProvider) AlreadyProcessed ¶
func (svc *SolanaProvider) AlreadyProcessed(sig string) bool
func (*SolanaProvider) Connection ¶
func (svc *SolanaProvider) Connection() *rpc.Client
func (*SolanaProvider) ConnectionUri ¶
func (svc *SolanaProvider) ConnectionUri(ws bool) string
func (*SolanaProvider) DefaultTimeoutCtx ¶
func (svc *SolanaProvider) DefaultTimeoutCtx() (context.Context, context.CancelFunc)
func (*SolanaProvider) GetTokenAccountsByOwner ¶
func (svc *SolanaProvider) GetTokenAccountsByOwner(publicKey solana.PublicKey, commitment rpc.CommitmentType, programID solana.PublicKey) (*rpc.GetTokenAccountsResult, error)
func (*SolanaProvider) GetTokenLargestAccounts ¶
func (svc *SolanaProvider) GetTokenLargestAccounts(publicKey solana.PublicKey) (out *rpc.GetTokenLargestAccountsResult, err error)
func (*SolanaProvider) ListenLogs ¶
func (svc *SolanaProvider) ListenLogs(sub *ws.LogSubscription, parseLogs func(solana.Signature, []string))
func (*SolanaProvider) ListenProgram ¶
func (svc *SolanaProvider) ListenProgram(sub *ws.ProgramSubscription, parseInput func(acc rpc.KeyedAccount))
func (SolanaProvider) LogSubscribe ¶
func (svc SolanaProvider) LogSubscribe(programId string) (*ws.LogSubscription, error)
func (*SolanaProvider) Message ¶
func (svc *SolanaProvider) Message(walletAddr string, nonce string) []byte
func (*SolanaProvider) OwnedNFTTokens ¶
func (svc *SolanaProvider) OwnedNFTTokens(mintAddr string, ownerAddr string) ([]string, error)
func (SolanaProvider) ProgramSubscribe ¶
func (svc SolanaProvider) ProgramSubscribe(programId string) (*ws.ProgramSubscription, error)
func (*SolanaProvider) Transaction ¶
func (svc *SolanaProvider) Transaction(signature solana.Signature) (*rpc.GetTransactionResult, error)
Click to show internal directories.
Click to hide internal directories.