Const
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 L2PS hash update transaction for DTR relay to validators.
L2PS hash updates are self-directed transactions that carry consolidated hash information representing multiple L2PS transactions. These transactions are automatically relayed to validators via DTR (Distributed Transaction Routing) to enable consensus on L2PS network activity without exposing transaction content.
The unique identifier of the L2PS network
SHA-256 hash representing all L2PS transactions
Number of transactions included in this hash update
The demos instance (for getting the address nonce)
The signed L2PS hash update 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 store binary data on the blockchain. Data is stored in the sender's account.
The binary data to store (will be base64-encoded)
The demos instance (for getting the address nonce)
The signed storage 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.