providers

package
v0.0.0-...-20386cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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) Owner

func (svc *SolanaProvider) Owner(mintAddr 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)

func (*SolanaProvider) Verify

func (svc *SolanaProvider) Verify(publicKey string, nonce string, signedMessage []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL