Versions in this module Expand all Collapse all v0 v0.2.1 Feb 20, 2023 v0.2.0 Dec 7, 2022 Changes in this version type Client + GenesisBlock func(ctx context.Context) (BlockResponse, error) + InitialHeightBlock func(ctx context.Context) (BlockResponse, error) + OldestBlock func(ctx context.Context) (BlockResponse, error) v0.1.0 Nov 4, 2022 Changes in this version + const SpecVersion + type API interface + type BlockResponse struct + Block *types.BlockIdentifier + MillisecondTimestamp int64 + ParentBlock *types.BlockIdentifier + TxCount int64 + type BlockTransactionsResponse struct + Transactions []*types.Transaction + type Client interface + Balances func(ctx context.Context, addr string, height *int64) ([]*types.Amount, error) + BlockByHash func(ctx context.Context, hash string) (BlockResponse, error) + BlockByHeight func(ctx context.Context, height *int64) (BlockResponse, error) + BlockTransactionsByHash func(ctx context.Context, hash string) (BlockTransactionsResponse, error) + BlockTransactionsByHeight func(ctx context.Context, height *int64) (BlockTransactionsResponse, error) + Bootstrap func() error + ConstructionMetadataFromOptions func(ctx context.Context, options map[string]interface{}) (meta map[string]interface{}, err error) + GetTx func(ctx context.Context, hash string) (*types.Transaction, error) + GetUnconfirmedTx func(ctx context.Context, hash string) (*types.Transaction, error) + Mempool func(ctx context.Context) ([]*types.TransactionIdentifier, error) + Peers func(ctx context.Context) ([]*types.Peer, error) + PostTx func(txBytes []byte) (res *types.TransactionIdentifier, meta map[string]interface{}, err error) + Ready func() error + Status func(ctx context.Context) (*types.SyncStatus, error) + type ConstructionAPI interface + type ConstructionOfflineAPI interface + ConstructionCombine func(context.Context, *types.ConstructionCombineRequest) (*types.ConstructionCombineResponse, *types.Error) + ConstructionDerive func(context.Context, *types.ConstructionDeriveRequest) (*types.ConstructionDeriveResponse, *types.Error) + ConstructionHash func(context.Context, *types.ConstructionHashRequest) (*types.TransactionIdentifierResponse, *types.Error) + ConstructionParse func(context.Context, *types.ConstructionParseRequest) (*types.ConstructionParseResponse, *types.Error) + ConstructionPayloads func(context.Context, *types.ConstructionPayloadsRequest) (*types.ConstructionPayloadsResponse, *types.Error) + ConstructionPreprocess func(context.Context, *types.ConstructionPreprocessRequest) (*types.ConstructionPreprocessResponse, *types.Error) + type ConstructionOnlineAPI interface + ConstructionMetadata func(context.Context, *types.ConstructionMetadataRequest) (*types.ConstructionMetadataResponse, *types.Error) + ConstructionSubmit func(context.Context, *types.ConstructionSubmitRequest) (*types.TransactionIdentifierResponse, *types.Error) + type DataAPI interface + type NetworkInformationProvider interface + OperationStatuses func() []*types.OperationStatus + SupportedOperations func() []string + Version func() string + type OfflineClient interface + AccountIdentifierFromPublicKey func(pubKey *types.PublicKey) (*types.AccountIdentifier, error) + ConstructionPayload func(ctx context.Context, req *types.ConstructionPayloadsRequest) (resp *types.ConstructionPayloadsResponse, err error) + PreprocessOperationsToOptions func(ctx context.Context, req *types.ConstructionPreprocessRequest) (resp *types.ConstructionPreprocessResponse, err error) + SignedTx func(ctx context.Context, txBytes []byte, sigs []*types.Signature) (signedTxBytes []byte, err error) + TxOperationsAndSignersAccountIdentifiers func(signed bool, hexBytes []byte) (ops []*types.Operation, signers []*types.AccountIdentifier, err error)