Versions in this module Expand all Collapse all v1 v1.12.2 Mar 3, 2025 Changes in this version + var DefaultConfig = Config + var ErrRejected = errors.New("rejected") + func AwaitTxAccepted(c Client, ctx context.Context, txID ids.ID, freq time.Duration, ...) error + type AssetDefinition struct + Denomination avajson.Uint8 + InitialState map[string][]interface{} + Memo string + Name string + Symbol string + type Balance struct + AssetID string + Balance avajson.Uint64 + type BuildGenesisArgs struct + Encoding formatting.Encoding + GenesisData map[string]AssetDefinition + NetworkID avajson.Uint32 + type BuildGenesisReply struct + Bytes string + Encoding formatting.Encoding + type Client interface + GetAllBalances func(ctx context.Context, addr ids.ShortID, includePartial bool, ...) ([]Balance, error) + GetAssetDescription func(ctx context.Context, assetID string, options ...rpc.Option) (*GetAssetDescriptionReply, error) + GetAtomicUTXOs func(ctx context.Context, addrs []ids.ShortID, sourceChain string, limit uint32, ...) ([][]byte, ids.ShortID, ids.ID, error) + GetBalance func(ctx context.Context, addr ids.ShortID, assetID string, includePartial bool, ...) (*GetBalanceReply, error) + GetBlock func(ctx context.Context, blkID ids.ID, options ...rpc.Option) ([]byte, error) + GetBlockByHeight func(ctx context.Context, height uint64, options ...rpc.Option) ([]byte, error) + GetHeight func(ctx context.Context, options ...rpc.Option) (uint64, error) + GetTx func(ctx context.Context, txID ids.ID, options ...rpc.Option) ([]byte, error) + GetTxFee func(context.Context, ...rpc.Option) (uint64, uint64, error) + GetTxStatus func(ctx context.Context, txID ids.ID, options ...rpc.Option) (choices.Status, error) + GetUTXOs func(ctx context.Context, addrs []ids.ShortID, limit uint32, ...) ([][]byte, ids.ShortID, ids.ID, error) + func NewClient(uri, chain string) Client + type Config struct + ChecksumsEnabled bool + IndexAllowIncomplete bool + IndexTransactions bool + Network network.Config + func ParseConfig(configBytes []byte) (Config, error) + type Factory struct + func (f *Factory) New(logging.Logger) (interface{}, error) + type FormattedAssetID struct + AssetID ids.ID + type Genesis struct + Txs []*GenesisAsset + type GenesisAsset struct + Alias string + func (g *GenesisAsset) Compare(other *GenesisAsset) int + type GetAddressTxsArgs struct + AssetID string + Cursor avajson.Uint64 + PageSize avajson.Uint64 + type GetAddressTxsReply struct + Cursor avajson.Uint64 + TxIDs []ids.ID + type GetAllBalancesArgs struct + IncludePartial bool + type GetAllBalancesReply struct + Balances []Balance + type GetAssetDescriptionArgs struct + AssetID string + type GetAssetDescriptionReply struct + Denomination avajson.Uint8 + Name string + Symbol string + type GetBalanceArgs struct + Address string + AssetID string + IncludePartial bool + type GetBalanceReply struct + Balance avajson.Uint64 + UTXOIDs []avax.UTXOID + type GetTxFeeReply struct + CreateAssetTxFee avajson.Uint64 + TxFee avajson.Uint64 + type GetTxStatusReply struct + Status choices.Status + type Holder struct + Address string + Amount avajson.Uint64 + type Owners struct + Minters []string + Threshold avajson.Uint32 + type Service struct + func (s *Service) GetAddressTxs(_ *http.Request, args *GetAddressTxsArgs, reply *GetAddressTxsReply) error + func (s *Service) GetAllBalances(_ *http.Request, args *GetAllBalancesArgs, reply *GetAllBalancesReply) error + func (s *Service) GetAssetDescription(_ *http.Request, args *GetAssetDescriptionArgs, ...) error + func (s *Service) GetBalance(_ *http.Request, args *GetBalanceArgs, reply *GetBalanceReply) error + func (s *Service) GetBlock(_ *http.Request, args *api.GetBlockArgs, reply *api.GetBlockResponse) error + func (s *Service) GetBlockByHeight(_ *http.Request, args *api.GetBlockByHeightArgs, reply *api.GetBlockResponse) error + func (s *Service) GetHeight(_ *http.Request, _ *struct{}, reply *api.GetHeightResponse) error + func (s *Service) GetTx(_ *http.Request, args *api.GetTxArgs, reply *api.GetTxReply) error + func (s *Service) GetTxFee(_ *http.Request, _ *struct{}, reply *GetTxFeeReply) error + func (s *Service) GetTxStatus(_ *http.Request, args *api.JSONTxID, reply *GetTxStatusReply) error + func (s *Service) GetUTXOs(_ *http.Request, args *api.GetUTXOsArgs, reply *api.GetUTXOsReply) error + func (s *Service) IssueTx(_ *http.Request, args *api.FormattedTx, reply *api.JSONTxID) error + type StaticService struct + func CreateStaticService() *StaticService + func (*StaticService) BuildGenesis(_ *http.Request, args *BuildGenesisArgs, reply *BuildGenesisReply) error + type Tx struct + func (*Tx) Reject(context.Context) error + func (tx *Tx) Accept(context.Context) error + func (tx *Tx) Bytes() []byte + func (tx *Tx) ID() ids.ID + func (tx *Tx) MissingDependencies() (set.Set[ids.ID], error) + func (tx *Tx) Status() choices.Status + func (tx *Tx) Verify(context.Context) error + type VM struct + func (*VM) HealthCheck(context.Context) (interface{}, error) + func (*VM) Version(context.Context) (string, error) + func (vm *VM) Connected(ctx context.Context, nodeID ids.NodeID, version *version.Application) error + func (vm *VM) CreateHandlers(context.Context) (map[string]http.Handler, error) + func (vm *VM) Disconnected(ctx context.Context, nodeID ids.NodeID) error + func (vm *VM) GetBlock(_ context.Context, blkID ids.ID) (snowman.Block, error) + func (vm *VM) GetBlockIDAtHeight(_ context.Context, height uint64) (ids.ID, error) + func (vm *VM) Initialize(_ context.Context, ctx *snow.Context, db database.Database, ...) error + func (vm *VM) LastAccepted(context.Context) (ids.ID, error) + func (vm *VM) Linearize(ctx context.Context, stopVertexID ids.ID, toEngine chan<- common.Message) error + func (vm *VM) ParseBlock(_ context.Context, blkBytes []byte) (snowman.Block, error) + func (vm *VM) ParseTx(_ context.Context, bytes []byte) (snowstorm.Tx, error) + func (vm *VM) SetPreference(_ context.Context, blkID ids.ID) error + func (vm *VM) SetState(_ context.Context, state snow.State) error + func (vm *VM) Shutdown(context.Context) error + type WalletClient interface + IssueTx func(ctx context.Context, tx []byte, options ...rpc.Option) (ids.ID, error) + func NewWalletClient(uri, chain string) WalletClient + type WalletService struct + func (w *WalletService) IssueTx(_ *http.Request, args *api.FormattedTx, reply *api.JSONTxID) error