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) BackendBuilder
Builder provides a convenient interface for building unsigned P-chain transactions.
func NewBuilder(addrs set.Set[ids.ShortID], context *builder.Context, backend BuilderBackend) Builderfunc NewBuilderWithOptions(builder Builder, options ...common.Option) BuilderBuilderBackend
BuilderBackend specifies the required information needed to build unsigned P-chain transactions.
Client
func NewClient(
c *platformvm.Client,
b wallet.Backend,
) *Clientfunc (c *Client) IssueTx(
tx *txs.Tx,
options ...common.Option,
) errorSigner
func NewSigner(kc keychain.Keychain, backend SignerBackend) SignerSignerBackend
Wallet
Re-export wallet types so that importers of wallet/chain/p can access them