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.
Signs a message with a given algorithm.
The message to sign.
The keypair to use for signing.
The algorithm related to the keypair.
A Promise that resolves to the signed message.
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.
The keypair to use for signing.
A Promise that resolves to the signed transaction.
Signs a message with a given algorithm.
The message to sign.
The keypair to use for signing.
The algorithm related to the keypair.
A Promise that resolves to the signed message.
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.
Same as demos.sign
.
Signs a transaction after hashing its content.
The transaction to be signed.
Signs a message with a given algorithm.
The message to sign.
The keypair to use for signing.
The algorithm related to the keypair.
A Promise that resolves to the signed message.
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
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 master seed.
The master seed of the wallet
Optional
options: { The options for the wallet connection
Optional
algorithm?: SigningAlgorithmThe algorithm to use for the wallet
Optional
dual_Whether to include the ed25519 signature along with the PQC signature, when signing with unlinked PQC keypairs (i.e. PQC keypairs not linked to your ed25519 address on the network).
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
Signs a message.
The message to sign
Optional
options: { The options for the message signing
Optional
algorithm?: SigningAlgorithmThe algorithm to use for the message signing. Defaults to the connected wallet's algorithm.
The signature of the message
Create a signed DEMOS transaction to send native tokens to a given address.
The reciever
The amount in DEM
The signed transaction.
Verifies a message.
The message to verify
The signature of the message
The public key of the message
Optional
options: { The options for the message verification
Optional
algorithm?: SigningAlgorithmThe algorithm to use for the message verification. Defaults to the connected wallet's algorithm or ed25519 if no wallet is connected.
Whether the message is verified
This class provides methods to interact with the DEMOS blockchain.