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
Optional
options: { Specify the curve to use when generating the key pair for the new account
Optional
curve?: "ed25519" | "secp256k1"The signed transaction for creating the new account on Near, and its key pair
Alias
Creates a signed transaction to transfer default chain currency
The receiver's address
The amount to transfer
Optional
options: anyOptions
The signed transaction
prepareTransfer
Creates a list of signed transactions to transfer default chain currency
A list of transfers to prepare
Optional
options: {}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
Optional
options: 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.
Optional
options: { Options
Optional
privateStatic
create
Interface for web sdk exclusive methods