exchain-go-sdk icon indicating copy to clipboard operation
exchain-go-sdk copied to clipboard

support ethereum client interfaces

Open xiangjianmeng opened this issue 3 years ago • 0 comments

go-sdk supports ethereum client interfaces as follows:

client.BalanceAt(ctx, account, blockNumber)
client.TransactionReceipt(ctx, txHash)
client.ChainID(ctx)
client.SendTransaction(ctx, tx)
client.PendingNonceAt(ctx, account)
client.NonceAt(ctx, account, blockNumber)
client.PendingCodeAt(ctx, account)
client.CodeAt(ctx, account, blockNumber)
client.EstimateGas(ctx, call)
client.SuggestGasPrice(ctx)
client.CallContract(ctx, msg, blockNumber)
client.BlockByNumber(ctx, number)
client.FilterLogs(ctx, q)
client.SubscribeFilterLogs(ctx, q, ch)
client.EthSubscribe(ctx, ch, "newHeads")
client.EthSubscribe(ctx, channel, args...)
client.CallContext(ctx, result, method, args...)
client.BatchCallContext(ctx, b)

Problem Definition

Proposal


For Admin Use

  • [ ] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned

xiangjianmeng avatar Jun 30 '21 02:06 xiangjianmeng