Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link
Icon AlertTriangle

Mainnet docs are version-pinned. Check each section's exact version in the sidebar; it can lag the newest upstream release.

Custom Inputs Outputs

Icon LinkCustom inputs and outputs

If you need to add specific inputs and outputs to contract calls, you can use the with_inputs and with_outputs methods.

let _ = contract_instance
    .methods()
    .initialize_counter(42)
    .with_inputs(custom_inputs)
    .with_outputs(custom_outputs)
    .add_signer(wallet_2.signer().clone())
    .call()
    .await?;
Icon InfoCircle

Note: if custom inputs include coins that need to be signed, use the add_signer method to add the appropriate signer.