Search
⌃K
🖼

SDK

The Client SDK is a JavaScript library which can be used to interact with contracts. Its goal is to abstract away complex web3 topics and remove the need to have deep knowledge of the HyperMint API. You should be able to get a simple wallet connection up and running within 10 mins using our Client SDK.

Currently Supported Wallets For EVM

  • MetaMask
  • Coinbase Wallet
  • WalletConnect

Quick Start

Add the following code snippet to your webpage.
<script src="https://hypermint.com/client-sdk/client-sdk-evm.js"
type="application/javascript"></script>
Next create a new instance of the Contract object by providing the contractId. This value can be found on the Contract page under the "Developers" tab. Note that this code should be placed so that it executes after your page has loaded, e.g. at the end of your <body>or by listening to the DOMContentLoaded document event.
const { Contract } = HyperMint;
​
const contract = new Contract({
contractId: 'YOUR CONTRACT ID',
enableLogging: true
});
The full JSON config for initializing a contract can be found on the contract page under the 'Developers' tab. You can also copy/paste this code as it will pre-fill the correct values for your contractId.
Now that you have an instance of a contract, you will be able to call functions to directly interact with the contract through the connected wallet without needing to use any additional library or API calls.

Feedback

Something not quite right, unclear or can't find what you are looking for? Please let us know at [email protected] and we will get back to you as soon as we can.