Home > eth-connect > SolidityFunction
This prototype should be used to call/sendTransaction to solidity functions
Signature:
export declare class SolidityFunction
Constructor | Modifiers | Description |
---|---|---|
(constructor)(json) | Constructs a new instance of the SolidityFunction class |
Property | Modifiers | Type | Description |
---|---|---|---|
_constant | boolean | ||
_inputTypes | AbiInput[] | ||
_name | string | ||
_outputTypes | AbiOutput[] | ||
_payable | boolean | ||
json | AbiFunction | ||
needsToBeTransaction | boolean |
Method | Modifiers | Description |
---|---|---|
attachToContract(contract) | Should be called to attach function to contract | |
displayName() | Should be used to get function display name | |
estimateGas(requestManager, address, args) | Should be used to estimateGas of solidity function | |
execute(requestManager, address, args) | Calls a contract function or to sendTransaction to solidity function | |
extractDefaultBlock(args) | ||
signature() | Should be used to get function signature | |
toPayload(args) | Should be used to create payload from arguments | |
typeName() | Should be used to get function type name | |
unpackOutput(output) | ||
validateArgs(args) | Should be called to check if the number of arguments is correct |