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) BackendBuilder
Builder provides a convenient interface for building unsigned X-chain transactions.
func NewBuilder(addrs set.Set[ids.ShortID], backend BuilderBackend) Builderfunc NewBuilderWithOptions(builder Builder, options ...common.Option) BuilderBuilderBackend
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) SignerSignerBackend
Wallet
func NewWallet(
builder builder.Builder,
signer signer.Signer,
backend Backend,
) Walletfunc NewWalletWithOptions(
wallet Wallet,
options ...common.Option,
) Wallet