Create a contract handle from a raw PolkadotClient, address, and ABI.
PolkadotClient
Convenience wrapper that creates the InkSdk internally via dynamic import. For size-sensitive apps, use createContract with a pre-created InkSdk.
InkSdk
Optional
const counter = await createContractFromClient(client.raw.assetHub, "0xC472...", abi);const { value } = await counter.getCount.query(); Copy
const counter = await createContractFromClient(client.raw.assetHub, "0xC472...", abi);const { value } = await counter.getCount.query();
Create a contract handle from a raw
PolkadotClient, address, and ABI.Convenience wrapper that creates the InkSdk internally via dynamic import. For size-sensitive apps, use createContract with a pre-created
InkSdk.