Get Function Parameters
Get Function Parameters from an Encoded Action
Decodes the parameters of a function call from the TokenVoting plugin contract.
Decoding
import { tokenVotingClient } from "./index";
const data: Uint8Array = new Uint8Array([12, 56]);
// Decodes the parameters of a function call from the TokenVoting plugin.
const functionParams = tokenVotingClient.decoding.findInterface(data);
console.log(functionParams);
Returns:
{
id: "function functionName(param1, param2)"
functionName: "functionName"
hash: "0x12345678"
}