Skip to content

Get Smart Contract

After you have created a smart contract, you can get it via SDK by using the generated smart contract ID. You can find the smart contract ID by going to the smart contract details page in our web interface. It's in the General tab under the Smart Contract ID field.

import { ChainId, KriptonioSdk } from '@kriptonio/sdk';
 
const sdk = new KriptonioSdk({
  accessToken: 'your-access-token',
});
 

const smartContract = await sdk.smartContract.get({ id: '<id>' });