Documentation
¶
Index ¶
- Constants
- Variables
- type GetBlockResult
- type GetLatestBlockResult
- type Options
- type SolanaSDK
- func (s *SolanaSDK) GetBlock(ctx context.Context, block uint64) (*GetBlockResult, error)
- func (s *SolanaSDK) GetLatestBlock(ctx context.Context) (*GetLatestBlockResult, error)
- func (s *SolanaSDK) GetSignaturesForAddress(ctx context.Context, address solana.PublicKey) ([]*rpc.TransactionSignature, error)
- func (s *SolanaSDK) GetTransaction(ctx context.Context, txSignature solana.Signature) (*rpc.GetTransactionResult, error)
Constants ¶
View Source
const ( //Slot was skipped, or missing due to ledger jump to recent snapshot ErrSlotSkippedCode = -32007 //Slot was skipped, or missing in long-term storage ErrLongTermStorageSlotSkippedCode = -32009 )
https://github.com/solana-labs/solana/blob/master/rpc-client-api/src/custom_error.rs
Variables ¶
View Source
var ( ErrTooManyRequests = errors.New("too many requests") ErrSlotSkipped = errors.New("slot was skipped") )
Functions ¶
This section is empty.
Types ¶
type GetBlockResult ¶
type GetBlockResult struct { IsConfirmed bool Transactions []rpc.TransactionWithMeta BlockTime *time.Time }
type GetLatestBlockResult ¶
type SolanaSDK ¶
type SolanaSDK struct {
// contains filtered or unexported fields
}
func NewSolanaSDK ¶
func (*SolanaSDK) GetLatestBlock ¶
func (s *SolanaSDK) GetLatestBlock(ctx context.Context) (*GetLatestBlockResult, error)
func (*SolanaSDK) GetSignaturesForAddress ¶
func (*SolanaSDK) GetTransaction ¶
Click to show internal directories.
Click to hide internal directories.