okx / exchain-go-sdk

ExChain go sdk
Other
37 stars 16 forks source link

support ethereum client interfaces #137

Open xiangjianmeng opened 3 years ago

xiangjianmeng commented 3 years ago

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