Connection status of the RPC URL
Broadcasts a transaction for execution.
The validity data of the transaction
The demos instance
The response from the node
Confirms a transaction.
The transaction to confirm
The validity data of the transaction containing the gas information.
Signs a transaction after hashing its content.
The transaction to be signed.
The keypair to use for signing.
A Promise that resolves to the signed transaction.
Create a signed DEMOS transaction to send native tokens to a given address.
The reciever
The amount in DEM
The demos instance (for getting the address nonce)
The signed transaction.
Create a signed DEMOS transaction to send native tokens to a given address.
The reciever
The amount in DEM
The demos instance (for getting the address nonce)
The signed transaction.
The keypair of the connected wallet
The RPC URL of the demos node
Broadcasts a transaction for execution.
The validity data of the transaction
The demos instance
The response from the node
Confirms a transaction.
The transaction to confirm
The validity data of the transaction containing the gas information.
Signs a transaction after hashing its content.
The transaction to be signed.
The keypair to use for signing.
A Promise that resolves to the signed transaction.
Create a signed DEMOS transaction to send native tokens to a given address.
The reciever
The amount in DEM
The demos instance (for getting the address nonce)
The signed transaction.
Create a signed DEMOS transaction to send native tokens to a given address.
The reciever
The amount in DEM
The demos instance (for getting the address nonce)
The signed transaction.
Broadcasts a transaction for execution.
The validity data of the transaction
The demos instance
The response from the node
Confirms a transaction.
The transaction to confirm
The validity data of the transaction containing the gas information.
Signs a transaction after hashing its content.
The transaction to be signed.
Optional
keypair: IKeyPairThe keypair to use for signing. If not provided, the keypair connected to the wallet will be used.
A Promise that resolves to the signed transaction.
Create a signed DEMOS transaction to send native tokens to a given address.
The reciever
The amount in DEM
The demos instance (for getting the address nonce)
The signed transaction.
Create a signed DEMOS transaction to send native tokens to a given address.
The reciever
The amount in DEM
The demos instance (for getting the address nonce)
The signed transaction.
Connection status of the wallet
Static
instanceBroadcasts a transaction for execution.
The validity data of the transaction
The response from the node
Confirms a transaction.
The transaction to confirm
The validity data of the transaction containing the gas information.
Connects to a Demos wallet using the provided private key.
The private key of the wallet
Optional
options: { The options for the wallet connection
Optional
isWhether the private key is a seed. If true, the seed will be converted to an ed25519 keypair.
The public key of the wallet
Get the mempool.
Get all transactions.
Optional
start: number | "latest"Optional
limit: numberGet transaction by hash.
The transaction hash
Create a signed DEMOS transaction to send native tokens to a given address.
The reciever
The amount in DEM
The signed transaction.
Signs a transaction.
The transaction to sign
The signed transaction
Create a signed DEMOS transaction to send native tokens to a given address.
The reciever
The amount in DEM
The signed transaction.
This class provides methods to interact with the DEMOS blockchain.