Skip to content

contract.method.getData #8

@wighawag

Description

@wighawag

ethjs-contract

Issue Type

  • Feature

Description

With web3 I make use of the getData functionality to get the data to be sent as part of a transaction

Currently ethjs does not seem to offer that functionality

from web3 doc here : https://github.com/ethereum/wiki/wiki/JavaScript-API#contract-methods

// Get the call data, so you can call the contract through some other means
var myCallData = myContractInstance.myMethod.getData(param1 [, param2, ...]);
// myCallData = '0x45ff3ff6000000000004545345345345..'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions