Encode method arguments into contract calldata using a contract spec.
Use this when constructing invocations from a spec without generated TypeScript bindings. Generated descriptors use their own resolved codecs.
const namedCodecs = buildNamedCodecs(spec.type_defs);const calldata = encodeCalldata( spec, "Counter", "increment", [1n], namedCodecs,); Copy
const namedCodecs = buildNamedCodecs(spec.type_defs);const calldata = encodeCalldata( spec, "Counter", "increment", [1n], namedCodecs,);
Encode method arguments into contract calldata using a contract spec.
Use this when constructing invocations from a spec without generated TypeScript bindings. Generated descriptors use their own resolved codecs.