Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/web3/packages/web3-eth-abi/types/index.d.ts>AbiCoder

Deno / TypeScript to Ethereum Connector
Latest
class AbiCoder
import { AbiCoder } from "https://deno.land/x/web3@v0.11.1/packages/web3-eth-abi/types/index.d.ts";

Methods

decodeLog(
inputs: AbiInput[],
hex: string,
topics: string[],
): { [key: string]: string; }
decodeParameter(type: any, hex: string): { [key: string]: any; }
decodeParameters(types: any[], hex: string): { [key: string]: any; }
encodeEventSignature(functionName: string | AbiItem): string
encodeFunctionCall(abiItem: AbiItem, params: string[]): string
encodeFunctionSignature(functionName: string | AbiItem): string
encodeParameter(type: any, parameter: any): string
encodeParameters(types: any[], paramaters: any[]): string