For devs
Useful links and info for devs that want to integrate the Kleverchain to their projects

If you want to create a web app that communicates with the Kleverchain via the Klever web extension or via the Klever mobile app's built-in browser, you can find more info on our javascript library in this link:
Introduction to KleverChain SDK
KleverChain SDK

If you need more info on the Kleverchain APIs to interact directly with the blockchain, you can access the swagger documentation for the API endpoints through the following URLs:

Swagger UI
Proxy API endpoints

Swagger UI
Node API endpoints

If you plan on using the raw endpoints, you'll need to do three main steps: building, signing and broadcasting the transaction.

To build the transaction, if you are creating a web application, you can use the window method injected by the Klever extension (or the Klever 5 mobile browser).
const unsignedTransaction = await window.kleverWeb.buildTransaction([
{
payload,
type: TransactionType.Transfer,
},
]);
Even though you can use the window kleverWeb object directly, we suggest you use the Kleverchain JS SDK, if you are using javascript.
Alternatively you can send the params through the send endpoint, and will receive an unsigned transaction as response.

To sign the transaction, if you are creating a web application, again, you can use the window method injected by the Klever extension (or the Klever 5 mobile browser).
const signedTransaction = await window.kleverWeb.signTransaction(unsignedTransaction);
Alternatively, to sign the transaction, you will need to do it using a backend application, so you don't expose your private key. For instance, you can use the GO SDK.

To broadcast the transaction, if you are creating a web application, again, you can use the window method.
const broadcastResponse = await window.kleverWeb.broadcastTransactions([signedTransaction]);
Alternatively you can send a signed transaction through the broadcast endpoint to be processed and validated by the blockchain.
Copy link
On this page
Web SDK
Kleverchain API
Sending a Transaction to the KleverChain
1. Build
2. Sign
3. Broadcast