Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 2.67 KB

eth-connect.solidityfunction.md

File metadata and controls

47 lines (35 loc) · 2.67 KB

Home > eth-connect > SolidityFunction

SolidityFunction class

This prototype should be used to call/sendTransaction to solidity functions

Signature:

export declare class SolidityFunction 

Constructors

Constructor Modifiers Description
(constructor)(json) Constructs a new instance of the SolidityFunction class

Properties

Property Modifiers Type Description
_constant boolean
_inputTypes AbiInput[]
_name string
_outputTypes AbiOutput[]
_payable boolean
json AbiFunction
needsToBeTransaction boolean

Methods

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