Versions in this module Expand all Collapse all v0 v0.2.0 Dec 1, 2025 v0.1.0 Nov 28, 2025 Changes in this version + var ErrExists = errors.New("the transaction already exists") + var ErrNotFound = errors.New("no records could be found") + type Confirmation uint + const ConfirmationConfirmed + const ConfirmationFailed + const ConfirmationFinalized + const ConfirmationPending + const ConfirmationUnknown + type Record struct + BlockTime time.Time + ConfirmationState Confirmation + Confirmations uint64 + CreatedAt time.Time + Data []byte + Fee *uint64 + HasErrors bool + Id uint64 + Signature string + Slot uint64 + TokenBalances []*TokenBalance + func FromConfirmedTransaction(tx *solana.ConfirmedTransaction) (*Record, error) + func (r *Record) GetTokenBalanceChanges(account string) (*TokenBalance, error) + func (r *Record) String() string + func (r *Record) Unmarshal() (*solana.Transaction, error) + type Store interface + Get func(ctx context.Context, txId string) (*Record, error) + GetAllByAddress func(ctx context.Context, address string, cursor uint64, limit uint, ...) ([]*Record, error) + GetFirstPending func(ctx context.Context, address string) (*Record, error) + GetLatestByState func(ctx context.Context, address string, state Confirmation) (*Record, error) + GetSignaturesByState func(ctx context.Context, filter Confirmation, limit uint, ordering query.Ordering) ([]string, error) + Put func(ctx context.Context, transaction *Record) error + type TokenBalance struct + Account string + PostBalance uint64 + PreBalance uint64