Versions in this module Expand all Collapse all v1 v1.1.1 Dec 18, 2024 Changes in this version + func NewPubSubFilterer(tx *txs.Tx) pubsub.Filterer + type AssetDefinition struct + Denomination json.Uint8 + InitialState map[string][]interface{} + Memo string + Name string + Symbol string + type AssetIDChangeAddr struct + type Balance struct + AssetID string + Balance json.Uint64 + type BuildGenesisArgs struct + Encoding formatting.Encoding + GenesisData map[string]AssetDefinition + NetworkID json.Uint32 + type BuildGenesisReply struct + Bytes string + Encoding formatting.Encoding + type Client interface + ConfirmTx func(ctx context.Context, txID ids.ID, freq time.Duration, options ...rpc.Option) (choices.Status, error) + CreateAddress func(ctx context.Context, user api.UserPass, options ...rpc.Option) (ids.ShortID, error) + CreateAsset func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + CreateFixedCapAsset func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + CreateNFTAsset func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + CreateVariableCapAsset func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + Export func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + ExportKey func(ctx context.Context, user api.UserPass, addr ids.ShortID, ...) (*secp256k1.PrivateKey, error) + 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) + 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) + Import func(ctx context.Context, user api.UserPass, to ids.ShortID, sourceChain string, ...) (ids.ID, error) + ImportKey func(ctx context.Context, user api.UserPass, privateKey *secp256k1.PrivateKey, ...) (ids.ShortID, error) + IssueStopVertex func(ctx context.Context, options ...rpc.Option) error + ListAddresses func(ctx context.Context, user api.UserPass, options ...rpc.Option) ([]ids.ShortID, error) + Mint func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + MintNFT func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + SendNFT func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + func NewClient(uri, chain string) Client + type ClientHolder struct + Address ids.ShortID + Amount uint64 + type ClientOwners struct + Minters []ids.ShortID + Threshold uint32 + type ClientSendOutput struct + Amount uint64 + AssetID string + To ids.ShortID + type Config struct + IndexAllowIncomplete bool + IndexTransactions bool + type CreateAssetArgs struct + Denomination byte + InitialHolders []*Holder + MinterSets []Owners + Name string + Symbol string + type CreateNFTAssetArgs struct + MinterSets []Owners + Name string + Symbol string + type ExportArgs struct + Amount json.Uint64 + AssetID string + TargetChain string + To string + type ExportKeyArgs struct + Address string + type ExportKeyReply struct + PrivateKey *secp256k1.PrivateKey + 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) Less(other *GenesisAsset) bool + type GetAddressTxsArgs struct + AssetID string + Cursor json.Uint64 + PageSize json.Uint64 + type GetAddressTxsReply struct + Cursor json.Uint64 + TxIDs []ids.ID + type GetAllBalancesArgs struct + IncludePartial bool + type GetAllBalancesReply struct + Balances []Balance + type GetAssetDescriptionArgs struct + AssetID string + type GetAssetDescriptionReply struct + Denomination json.Uint8 + Name string + Symbol string + type GetBalanceArgs struct + Address string + AssetID string + IncludePartial bool + type GetBalanceReply struct + Balance json.Uint64 + UTXOIDs []avax.UTXOID + type GetTxStatusReply struct + Status choices.Status + type Holder struct + Address string + Amount json.Uint64 + type ImportArgs struct + SourceChain string + To string + type ImportKeyArgs struct + PrivateKey *secp256k1.PrivateKey + type ImportKeyReply struct + Address string + type MintArgs struct + Amount json.Uint64 + AssetID string + To string + type MintNFTArgs struct + AssetID string + Encoding formatting.Encoding + Payload string + To string + type Owners struct + Minters []string + Threshold json.Uint32 + type SendArgs struct + Memo string + type SendMultipleArgs struct + Memo string + Outputs []SendOutput + type SendNFTArgs struct + AssetID string + GroupID json.Uint32 + To string + type SendOutput struct + Amount json.Uint64 + AssetID string + To string + type Service struct + func (s *Service) CreateAddress(_ *http.Request, args *api.UserPass, reply *api.JSONAddress) error + func (s *Service) CreateAsset(_ *http.Request, args *CreateAssetArgs, reply *AssetIDChangeAddr) error + func (s *Service) CreateFixedCapAsset(r *http.Request, args *CreateAssetArgs, reply *AssetIDChangeAddr) error + func (s *Service) CreateNFTAsset(_ *http.Request, args *CreateNFTAssetArgs, reply *AssetIDChangeAddr) error + func (s *Service) CreateVariableCapAsset(r *http.Request, args *CreateAssetArgs, reply *AssetIDChangeAddr) error + func (s *Service) Export(_ *http.Request, args *ExportArgs, reply *api.JSONTxIDChangeAddr) error + func (s *Service) ExportKey(_ *http.Request, args *ExportKeyArgs, reply *ExportKeyReply) error + 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) 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) Import(_ *http.Request, args *ImportArgs, reply *api.JSONTxID) error + func (s *Service) ImportKey(_ *http.Request, args *ImportKeyArgs, reply *api.JSONAddress) error + func (s *Service) IssueStopVertex(_ *http.Request, _, _ *struct{}) error + func (s *Service) IssueTx(_ *http.Request, args *api.FormattedTx, reply *api.JSONTxID) error + func (s *Service) ListAddresses(_ *http.Request, args *api.UserPass, response *api.JSONAddresses) error + func (s *Service) Mint(_ *http.Request, args *MintArgs, reply *api.JSONTxIDChangeAddr) error + func (s *Service) MintNFT(_ *http.Request, args *MintNFTArgs, reply *api.JSONTxIDChangeAddr) error + func (s *Service) Send(r *http.Request, args *SendArgs, reply *api.JSONTxIDChangeAddr) error + func (s *Service) SendMultiple(_ *http.Request, args *SendMultipleArgs, reply *api.JSONTxIDChangeAddr) error + func (s *Service) SendNFT(_ *http.Request, args *SendNFTArgs, reply *api.JSONTxIDChangeAddr) error + type StaticClient interface + BuildGenesis func(ctx context.Context, args *BuildGenesisArgs, options ...rpc.Option) (*BuildGenesisReply, error) + func NewStaticClient(uri string) StaticClient + type StaticService struct + func CreateStaticService() *StaticService + func (*StaticService) BuildGenesis(_ *http.Request, args *BuildGenesisArgs, reply *BuildGenesisReply) error + type TxCachedState struct + type UniqueTx struct + func (*UniqueTx) HasWhitelist() bool + func (*UniqueTx) Whitelist(context.Context) (set.Set[ids.ID], error) + func (tx *UniqueTx) Accept(context.Context) error + func (tx *UniqueTx) Bytes() []byte + func (tx *UniqueTx) Dependencies() ([]snowstorm.Tx, error) + func (tx *UniqueTx) Evict() + func (tx *UniqueTx) ID() ids.ID + func (tx *UniqueTx) InputIDs() []ids.ID + func (tx *UniqueTx) InputUTXOs() []*avax.UTXOID + func (tx *UniqueTx) Key() ids.ID + func (tx *UniqueTx) Reject(context.Context) error + func (tx *UniqueTx) SemanticVerify() error + func (tx *UniqueTx) Status() choices.Status + func (tx *UniqueTx) SyntacticVerify() error + func (tx *UniqueTx) UTXOs() []*avax.UTXO + func (tx *UniqueTx) Verify(context.Context) error + type VM struct + func (*VM) Connected(context.Context, ids.NodeID, *version.Application) error + func (*VM) CreateStaticHandlers(context.Context) (map[string]*common.HTTPHandler, error) + func (*VM) Disconnected(context.Context, ids.NodeID) error + func (*VM) HealthCheck(context.Context) (interface{}, error) + func (*VM) Version(context.Context) (string, error) + func (vm *VM) CreateHandlers(context.Context) (map[string]*common.HTTPHandler, error) + func (vm *VM) DeduplicateTx(tx *UniqueTx) *UniqueTx + func (vm *VM) FlushTxs() + func (vm *VM) GetBlock(_ context.Context, blkID ids.ID) (snowman.Block, error) + func (vm *VM) GetTx(_ context.Context, txID ids.ID) (snowstorm.Tx, error) + func (vm *VM) Initialize(_ context.Context, ctx *snow.Context, dbManager manager.Manager, ...) error + func (vm *VM) IssueTx(b []byte) (ids.ID, error) + func (vm *VM) LastAccepted(context.Context) (ids.ID, error) + func (vm *VM) Linearize(_ context.Context, stopVertexID ids.ID, toEngine chan<- common.Message) error + func (vm *VM) LoadUser(username string, password string, addrsToUse set.Set[ids.ShortID]) ([]*avax.UTXO, *secp256k1fx.Keychain, error) + func (vm *VM) ParseBlock(_ context.Context, blkBytes []byte) (snowman.Block, error) + func (vm *VM) ParseTx(_ context.Context, b []byte) (snowstorm.Tx, error) + func (vm *VM) PendingTxs(context.Context) []snowstorm.Tx + 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) + Send func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (ids.ID, error) + SendMultiple func(ctx context.Context, user api.UserPass, from []ids.ShortID, ...) (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 + func (w *WalletService) Send(r *http.Request, args *SendArgs, reply *api.JSONTxIDChangeAddr) error + func (w *WalletService) SendMultiple(_ *http.Request, args *SendMultipleArgs, reply *api.JSONTxIDChangeAddr) error