Documentation ¶
Index ¶
- Variables
- type EngineEth
- func (e *EngineEth) Call(ctx context.Context, txs engine.TransactionForCall, ...) (*string, error)
- func (e *EngineEth) ChainId(ctx context.Context) (*common.Uint256, error)
- func (e *EngineEth) Close()
- func (e *EngineEth) GetBalance(ctx context.Context, address common.Address, ...) (*common.Uint256, error)
- func (e *EngineEth) GetCode(ctx context.Context, address common.Address, ...) (*string, error)
- func (e *EngineEth) GetStorageAt(ctx context.Context, address common.Address, storageSlot common.Uint256, ...) (*string, error)
- func (e *EngineEth) GetTransactionCount(ctx context.Context, address common.Address, ...) (*common.Uint256, error)
- func (e *EngineEth) SendRawTransaction(ctx context.Context, txs common.DataVec) (*string, error)
- type EngineNet
- type EventsEth
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotificationsUnsupported = errors.New("notifications not supported")
)
Functions ¶
This section is empty.
Types ¶
type EngineEth ¶
func NewEngineEth ¶
func (*EngineEth) Call ¶
func (e *EngineEth) Call(ctx context.Context, txs engine.TransactionForCall, bNumOrHash *common.BlockNumberOrHash) (*string, error)
Call executes a new message call immediately without creating a transaction on the blockchain
On failure to access engine or format error on the response, returns error code '-32000' with custom message. If API is disabled, returns error code '-32601' with message 'the method does not exist/is not available'. On missing or invalid param returns error code '-32602' with custom message.
func (*EngineEth) ChainId ¶
ChainId returns the chain id of the current network
On failure to access engine or format error on the response, returns error code '-32000' with custom message. If API is disabled, returns error code '-32601' with message 'the method does not exist/is not available'. On any param returns error code '-32602' with custom message.
func (*EngineEth) GetBalance ¶
func (e *EngineEth) GetBalance(ctx context.Context, address common.Address, bNumOrHash *common.BlockNumberOrHash) (*common.Uint256, error)
GetBalance returns the balance of the account of given address
On failure to access engine or format error on the response, returns error code '-32000' with custom message. If API is disabled, returns error code '-32601' with message 'the method does not exist/is not available'. On missing or invalid param returns error code '-32602' with custom message.
func (*EngineEth) GetCode ¶
func (e *EngineEth) GetCode(ctx context.Context, address common.Address, bNumOrHash *common.BlockNumberOrHash) (*string, error)
GetCode returns the compiled smart contract code, if any, at a given address
On failure to access engine or format error on the response, returns error code '-32000' with custom message. If API is disabled, returns error code '-32601' with message 'the method does not exist/is not available'. On missing or invalid param returns error code '-32602' with custom message.
func (*EngineEth) GetStorageAt ¶
func (e *EngineEth) GetStorageAt(ctx context.Context, address common.Address, storageSlot common.Uint256, bNumOrHash *common.BlockNumberOrHash) (*string, error)
GetStorageAt returns the value from a storage position at a given address
On failure to access engine or format error on the response, returns error code '-32000' with custom message. If API is disabled, returns error code '-32601' with message 'the method does not exist/is not available'. On missing or invalid param returns error code '-32602' with custom message.
func (*EngineEth) GetTransactionCount ¶
func (e *EngineEth) GetTransactionCount(ctx context.Context, address common.Address, bNumOrHash *common.BlockNumberOrHash) (*common.Uint256, error)
GetTransactionCount returns the number of transactions sent from an address
On failure to access engine or format error on the response, returns error code '-32000' with custom message. If API is disabled, returns error code '-32601' with message 'the method does not exist/is not available'. On missing or invalid param returns error code '-32602' with custom message.
func (*EngineEth) SendRawTransaction ¶
SendRawTransaction submits a raw transaction to engine either asynchronously or synchronously based on the configuration
On failure to access engine or format error on the response, returns error code '-32000' with custom message. If API is disabled, returns error code '-32601' with message 'the method does not exist/is not available'. On missing or invalid param returns error code '-32602' with custom message.
Click to show internal directories.
Click to hide internal directories.