Deploy custom Smart Contracts
EVM Based Protocols (Ethereum-virtual-machine)
const sdk = new CryptumSdk({
environment: 'testnet',
apiKey: 'YOUR-API-KEY'
})Call smart contract method
sdk.contract.callMethod(opts)
sdk.contract.callMethod(opts)const { result } = await sdk.contract.callMethod({
contractAddress: '0x2B751008...6a763e72788Db9Ca',
contractAbi: [
{
constant: true,
inputs: [],
name: 'message',
outputs: [
{
internalType: 'string',
name: '',
type: 'string',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
],
method: 'message',
params: [],
protocol: 'CELO'
})
console.log(result)
// Result value from smart contract methodCreate smart contract call transaction
sdk.contract.callMethodTransaction(opts)
sdk.contract.callMethodTransaction(opts)Deploy a smart contract
sdk.contract.deploy(opts)
sdk.contract.deploy(opts)Last updated
