Versions in this module Expand all Collapse all v1 v1.11.13-rc.2 Dec 4, 2024 v1.0.0 Dec 4, 2024 Changes in this version + const Alias + var ErrInsufficientAuthorization = errors.New("insufficient authorization") + var ErrInsufficientFunds = errors.New("insufficient funds") + var ErrNoChangeAddress = errors.New("no possible change address") + var ErrUnknownOutputType = errors.New("unknown output type") + var ErrUnknownOwnerType = errors.New("unknown owner type") + func NewSnowContext(networkID uint32, avaxAssetID ids.ID) (*snow.Context, error) + type Backend interface + GetSubnetOwner func(ctx context.Context, subnetID ids.ID) (fx.Owner, error) + UTXOs func(ctx context.Context, sourceChainID ids.ID) ([]*avax.UTXO, error) + type Builder interface + Context func() *Context + GetBalance func(options ...common.Option) (map[ids.ID]uint64, error) + GetImportableBalance func(chainID ids.ID, options ...common.Option) (map[ids.ID]uint64, error) + NewAddDelegatorTx func(vdr *txs.Validator, rewardsOwner *secp256k1fx.OutputOwners, ...) (*txs.AddDelegatorTx, error) + NewAddPermissionlessDelegatorTx func(vdr *txs.SubnetValidator, assetID ids.ID, ...) (*txs.AddPermissionlessDelegatorTx, error) + NewAddPermissionlessValidatorTx func(vdr *txs.SubnetValidator, signer signer.Signer, assetID ids.ID, ...) (*txs.AddPermissionlessValidatorTx, error) + NewAddSubnetValidatorTx func(vdr *txs.SubnetValidator, options ...common.Option) (*txs.AddSubnetValidatorTx, error) + NewAddValidatorTx func(vdr *txs.Validator, rewardsOwner *secp256k1fx.OutputOwners, shares uint32, ...) (*txs.AddValidatorTx, error) + NewBaseTx func(outputs []*avax.TransferableOutput, options ...common.Option) (*txs.BaseTx, error) + NewCreateChainTx func(subnetID ids.ID, genesis []byte, vmID ids.ID, fxIDs []ids.ID, chainName string, ...) (*txs.CreateChainTx, error) + NewCreateSubnetTx func(owner *secp256k1fx.OutputOwners, options ...common.Option) (*txs.CreateSubnetTx, error) + NewExportTx func(chainID ids.ID, outputs []*avax.TransferableOutput, options ...common.Option) (*txs.ExportTx, error) + NewImportTx func(chainID ids.ID, to *secp256k1fx.OutputOwners, options ...common.Option) (*txs.ImportTx, error) + NewRemoveSubnetValidatorTx func(nodeID ids.NodeID, subnetID ids.ID, options ...common.Option) (*txs.RemoveSubnetValidatorTx, error) + NewTransferSubnetOwnershipTx func(subnetID ids.ID, owner *secp256k1fx.OutputOwners, options ...common.Option) (*txs.TransferSubnetOwnershipTx, error) + NewTransformSubnetTx func(subnetID ids.ID, assetID ids.ID, initialSupply uint64, maxSupply uint64, ...) (*txs.TransformSubnetTx, error) + func New(addrs set.Set[ids.ShortID], context *Context, backend Backend) Builder + func NewWithOptions(builder Builder, options ...common.Option) Builder + type Context struct + AVAXAssetID ids.ID + AddPrimaryNetworkDelegatorFee uint64 + AddPrimaryNetworkValidatorFee uint64 + AddSubnetDelegatorFee uint64 + AddSubnetValidatorFee uint64 + BaseTxFee uint64 + CreateBlockchainTxFee uint64 + CreateSubnetTxFee uint64 + NetworkID uint32 + TransformSubnetTxFee uint64 + func NewContextFromClients(ctx context.Context, infoClient info.Client, xChainClient avm.Client) (*Context, error) + func NewContextFromURI(ctx context.Context, uri string) (*Context, error)