Skip to content

bitbond/token-tool-api-examples

Repository files navigation

Bitbond logo

Bitbond Token Tool API examples

This repository contains a suite of script samples that demonstrate how to programmatically interact with Bitbond Token Tool contracts. Refer to Token Tool product documentation for additional context.

Contents by key custody provider:

The examples in this directory can be adapted to different key custody providers. Those scripts are intended as a simple illustration of interaction with smart contract's API, for production use we strongly advise employing a secure key custody solution.

For example, key custody SDK can be utilized to execute transactions. For key custodians that do not offer a dedicated SDK, it is often possible to achieve similar outcomes by directly utilizing key custodian’s API. The typical process involves invoking the contract call endpoint of key custodian’s API and passing the calldata payload. This sequence facilitates the creation of a signed transaction that is prepared for transmission to the blockchain node, a step that numerous key custody providers automate. In the case of token deployment, the logic is executed by Token Tool smart contract, resulting in the deployment of the token.

The example uses TypeScript, but can also be converted to pure JavaScript by removing type definitions.

Example token deployment: Block explorer

Token creation diagram

Requirements

Recommended:

  • Node.js 18.16.0 or higher
  • npm 9.5.1 or higher

Setup

Please refer to relevant README depending on your key custodian of choice, or to local-key directory to get going with the most basic example with private key stored locally.

About

Collection of scripts illustrating API interaction with Token Tool contracts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published