Versions in this module Expand all Collapse all v3 v3.0.1 Mar 15, 2024 v3.0.0 Mar 4, 2024 Changes in this version + var ErrNoResult = errors.New("no result in JSON-RPC response") + type BcosSDK struct + func (sdk *BcosSDK) BuildSDKWithParam(keyFile string, callback PostCallback, groupID string, chainID string, ...) *BuildSDKResult + func (sdk *BcosSDK) Call(abiContract string, address string, method string, params string, ...) *CallResult + func (sdk *BcosSDK) DeployContract(contractAbi string, contractBin string, params string) *ReceiptResult + func (sdk *BcosSDK) GetBlockNumber() *RPCResult + func (sdk *BcosSDK) GetCallOpts() *bind.CallOpts + func (sdk *BcosSDK) GetClientVersion() *RPCResult + func (sdk *BcosSDK) GetTransactOpts() *bind.TransactOpts + func (sdk *BcosSDK) GetTransactionByHash(txHash string) *TransactionResult + func (sdk *BcosSDK) GetTransactionReceipt(txHash string) *ReceiptResult + func (sdk *BcosSDK) SendTransaction(contractAbi string, address string, method string, params string) *ReceiptResult + type BuildSDKResult struct + Information string + IsSuccess bool + type CallResult struct + Code int + Message string + Result string + type ContractParams struct + Value interface{} + ValueType string + type ContractProxy struct + func (c *ContractProxy) AsyncSendTransaction(ctx context.Context, tx *types.Transaction, ...) error + func (c *ContractProxy) Call(ctx context.Context, groupID string, msg ethereum.CallMsg) ([]byte, error) + func (c *ContractProxy) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error + func (c *ContractProxy) CallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error) + func (c *ContractProxy) CodeAt(ctx context.Context, contract common.Address) ([]byte, error) + func (c *ContractProxy) GetBlockLimit(ctx context.Context) (*big.Int, error) + func (c *ContractProxy) GetChainID(ctx context.Context) (string, error) + func (c *ContractProxy) GetContractAddress(ctx context.Context, txHash common.Hash) (common.Address, error) + func (c *ContractProxy) GetGroupID() string + func (c *ContractProxy) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error) + func (c *ContractProxy) SMCrypto() bool + func (c *ContractProxy) SendTransaction(ctx context.Context, tx *types.Transaction) (*types.Receipt, error) + func (c *ContractProxy) SubscribeEventLogs(ctx context.Context, eventLogParams types.EventLogParams, ...) (string, error) + func (c *ContractProxy) UnSubscribeEventLogs(ctx context.Context, filterID string) error + type FullTransaction struct + BlockHash string + BlockNumber string + From string + Gas string + GasPrice string + Hash string + Input string + Nonce string + To string + TransactionIndex string + Value string + type NetworkResponse struct + Code int + Message string + Result json.RawMessage + type PostCallback interface + SendRequest func(rpcRequest string) string + type RPCResult struct + Code int + Message string + Result string + type ReceiptResult struct + Code int + Message string + Receipt *TxReceipt + type TransactionResult struct + Code int + Message string + Transaction *FullTransaction + type TxReceipt struct + BlockNumber string + ContractAddress string + From string + GasUsed string + Input string + Logs string + Output string + Status int + To string + TransactionHash string