Protected
Readonly
metaplexYou may use the builders()
client to access the
underlying Transaction Builders of this module.
const buildersClient = metaplex.system().builders();
Creates a new uninitialized Solana account.
const { newAccount } = await metaplex
.system()
.createAccount({ space: 100 }); // 100 bytes
Optional
options: OperationOptionsTransfers some SOL from one account to another.
await metaplex
.system()
.transferSol({
to: new PublicKey("..."),
amount: sol(1.5),
};
@group Operations @category Constructors
Optional
options: OperationOptionsGenerated using TypeDoc
This is a client for the System module.
It enables us to interact with the System program in order to create uninitialized accounts and transfer SOL.
You may access this client via the
system()
method of yourMetaplex
instance.Example
You can create a new uninitialized account with a given space in bytes using the code below.