✏️
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

Interaca with Smart Contract

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

Deploy Contract

Accessing an Conflux contract

Transacting with an Conflux contract

Batch Accessing an Conflux contract

Batch Transacting with an Conflux 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.

PreviousCompiling Solidity source codeNextApplication Binary Interface

Last updated 3 years ago

Was this helpful?