Skip to main content
The JavaScript SDK supports EVM and Substrate transactions. In order to communicate and generate transactions using the peaq blockchain an instance must be created.

createInstance(baseUrl, chainType, seed)

Now you will have an sdk object that can be used to execute the DID, RBAC, and Storage operations on the peaq blockchain. The EVM instance only constructs transactions objects, and does not send the transactions itself. This gives the user the ability to send peaq transactions themselves without ever sending a private key through the sdk. However, if you would like this process abstracted away, we do provide a Send Evm Transaction function. To mitigate concerns on how we use your seed/private key we have made our peaq js SDK fully open source.