encodeFunction

open fun encodeFunction(coin: CoinType, input: Array<Byte>): Array<Byte>

Encode function to Eth ABI binary.

Return

The serialized data of a `TW.EthereumAbi.Proto.FunctionEncodingOutput` proto object.

Parameters

coin

EVM-compatible coin type.

input

The serialized data of `TW.EthereumAbi.Proto.FunctionEncodingInput`.