Interacting with Smart Contracts

Interaca with Smart Contract

The simplest and recommended way is to use conflux-abigen to generate contract binding to deploy and invoke with contract

Direct interact with go-conflux-sdk [Depreated]

However, but not recommended, you also can use Client.DeployContract to deploy a contract or use Client.GetContract to get a contract by deployed address. Then you can use the contract instance to operate the contract, there are GetData/Call/SendTransaction. Please see api document and example for detail.

Last updated