Run NodesReferencewalletChain

x

Package x

import "github.com/luxfi/node/wallet/chain/x"

Functions

NewContextFromClients

func NewContextFromClients(
	ctx context.Context,
	infoClient *info.Client,
	utxoAssetID ids.ID,
	baseTxFee uint64,
	createAssetTxFee uint64,
) (*builder.Context, error)

NewContextFromURI

func NewContextFromURI(ctx context.Context, uri string, utxoAssetID ids.ID, baseTxFee uint64, createAssetTxFee uint64) (*builder.Context, error)

Types

Backend

Backend defines the full interface required to support an X-chain wallet.

func NewBackend(context *builder.Context, utxos common.ChainUTXOs) Backend

Builder

Builder provides a convenient interface for building unsigned X-chain transactions.

func NewBuilder(addrs set.Set[ids.ShortID], backend BuilderBackend) Builder
func NewBuilderWithOptions(builder Builder, options ...common.Option) Builder

BuilderBackend

BuilderBackend specifies the required information needed to build unsigned X-chain transactions.

Context

Context represents the X-chain context

Signer

func NewSigner(kc keychain.Keychain, backend SignerBackend) Signer

SignerBackend

Wallet

func NewWallet(
	builder builder.Builder,
	signer signer.Signer,
	backend Backend,
) Wallet
func NewWalletWithOptions(
	wallet Wallet,
	options ...common.Option,
) Wallet