vechain-sdk-js
vechain-sdk-js copied to clipboard
The official JavaScript SDK for vechain.
In thordevkit the following code is used to verify signer address: ``` if (address.fromPublicKey(pubKey) !== safeToLowerCase(cert.signer)) { throw new Error('signature does not match with signer') } ``` i.e. lowercased signer...
### Summary The `clauseBuilder` generates raw clauses without comments. Vechain Wallets support the display of clause related comments that improve user experience greatly. Adding support for comments during clause building...
### Summary `logs.filterEventLogs` requires manually encoding the log filter, which is handled within other parts of the SDK already by supporting fragments. The example code right now is: ```js //...
Currently, the Hardhat impersonated signer, it's not implemented in our hardhat plugin. Hardhat Network allows you to impersonate any address. This lets us send transactions from that account even if...
_As SDK user I wish to combine different Bloom filters to check if an element (address) is possibly part of multiple Thor's blocks get in different moments._ --- Bloom `Filter`...
The file apps/sdk-node-integration/package.json defines in the scripts.build the linux/unit specific command `rm -rf ./dist && tsup src/index.ts --format cjs,esm --dts` to be executed in the OS shell/terminal. Both the command...
### Summary Building a transaction is a multi-step process that can be confusing when getting started with the SDK. It requires to: 1. build clauses 1. estimateGas 1. buildTransactionBody 1....
### Description - After sending a transaction with `const sendTransactionResult = await thor.transactions.sendTransaction(signedTx);` - The result is documented to comply to: https://github.com/vechain/vechain-sdk-js/blob/3f766804c7e0672cbe454d1e15050cffe23acff2/packages/network/src/thor-client/transactions/types.d.ts#L162-L171 - Which lists `wait()` als function - but...
As a user I want to be able to inspect the outputs of a transaction and it's clauses before executing the transaction. Tasks: - Implement inspect outputs functionality - Provide...
To listen to events, the JSONRPCEthersProvider needs the method eth_newFilter. We should implement it according to the specifications: (https://docs.infura.io/api/networks/ethereum/json-rpc-methods/filter-methods/eth_newfilter)