✏️
go-conflux-sdk
  • README
  • Quickstart
  • Getting Started
    • Run a Node locally
    • Interacting with a Node
    • Deploy and Interact with Smart Contracts
    • Subscription
  • Smart Contracts
    • Smart Contract Overview
    • Getting Started with Solidity
    • Compiling Solidity source code
    • Interacting with Smart Contracts
    • Application Binary Interface
    • Contracts Supported
  • Transactions
    • Conflux Transactions
    • Obtaining CFX
    • Gas & Storage Collateral
    • Account Manager
    • Transfer CFX
    • Transaction Nonce
    • Batch Call snd Send Transactions
  • Other
    • Call/BatchCall RPC Hook
    • Conflux Addreess
  • Conflux-ABIGEN
  • ChangeLog
  • References
Powered by GitBook
On this page
  • Interaca with Smart Contract
  • Direct interact with go-conflux-sdk [Depreated]

Was this helpful?

  1. Smart Contracts

Interacting with Smart Contracts

PreviousCompiling Solidity source codeNextApplication Binary Interface

Last updated 3 years ago

Was this helpful?

Interaca with Smart Contract

The simplest and recommended way is to use 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 and for detail.

conflux-abigen
api document
example
Deploy Contract
Accessing an Conflux contract
Transacting with an Conflux contract
Batch Accessing an Conflux contract
Batch Transacting with an Conflux contract