Run NodesReferencewalletChain

p

Package p

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

Functions

NewContextFromClients

func NewContextFromClients(
	ctx context.Context,
	infoClient *info.Client,
	chainClient *platformvm.Client,
) (*builder.Context, error)

NewContextFromURI

func NewContextFromURI(ctx context.Context, uri string) (*builder.Context, error)

Types

Backend

Backend defines the full interface required to support a P-chain wallet.

func NewBackend(context *builder.Context, utxos common.ChainUTXOs, chainTxs map[ids.ID]*txs.Tx) Backend

Builder

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

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

BuilderBackend

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

Client

func NewClient(
	c *platformvm.Client,
	b wallet.Backend,
) *Client
func (c *Client) IssueTx(
	tx *txs.Tx,
	options ...common.Option,
) error

Signer

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

SignerBackend

Wallet

Re-export wallet types so that importers of wallet/chain/p can access them