Connects to a wallet using a private key
The private key of the wallet
The accountId to use with this private key
The wallet object
Create a new account
The new accountId
The amount of Ⓝ to deposit to the new account
Optionaloptions: { Specify the curve to use when generating the key pair for the new account
Optionalcurve?: "ed25519" | "secp256k1"The signed transaction for creating the new account on Near, and its key pair
AliasCreates a signed transaction to transfer default chain currency
The receiver's address
The amount to transfer
Optionaloptions: anyOptions
The signed transaction
prepareTransfer
Creates a list of signed transactions to transfer default chain currency
A list of transfers to prepare
Optionaloptions: {}Options
An ordered list of signed transactions
Creates a signed transaction to transfer default chain currency
The signed transaction
Creatthis.provider = new JsonRpcProvider(this.rpc_url)es a list of signed transactions to transfer default chain currency
A list of transfers to prepare
Optionaloptions: OptionsOptions
An ordered list of signed transactions
Signs a list of transactions using the connected wallet. The transaction nonce is incremented for each transaction in order of appearance.
Optionaloptions: { Options
OptionalprivateStaticcreate
Connects to the RPC provider