Contract API
Initializing
// web3Api.ts
import naxios from '@wpdas/naxios'
const naxiosInstance = new naxios({
contractId: 'dev-1692221685438-15421910364142',
network: 'testnet',
})
/**
* Greeting Contract API
*/
export const greetingContractApi = naxiosInstance.contractApi()// web3Api.ts
import naxios, { StorageCache } from '@wpdas/naxios'
const naxiosInstance = new naxios({
contractId: 'dev-1692221685438-15421910364142',
network: 'testnet',
})
/**
* Cached - Greeting Contract API
*/
const cache = new StorageCache({ expirationTime: 60 }) // expiration time in seconds
export const greetingContractApi = naxiosInstance.contractApi({ cache })API Reference
Contract View
Contract Call
Contract Multiple Calls at Once
Last updated