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

x/polkadot/api-contract/mod.ts>Abi

Package publishing for deno.land/x/polkadot
Go to Latest
class Abi
Re-export
import { Abi } from "https://deno.land/x/polkadot@0.2.27/api-contract/mod.ts";

Constructors

new
Abi(abiJson: Record<string, unknown> | string, chainProperties?: ChainProperties)

Properties

readonly
constructors: AbiConstructor[]
readonly
events: AbiEvent[]
readonly
info: ContractProjectInfo
readonly
json: Record<string, unknown>
readonly
messages: AbiMessage[]
readonly
metadata: ContractMetadataLatest
readonly
registry: Registry

Methods

decodeConstructor(data: Uint8Array): DecodedMessage

Warning: Unstable API, bound to change

decodeEvent(data: Bytes | Uint8Array): DecodedEvent

Warning: Unstable API, bound to change

decodeMessage(data: Uint8Array): DecodedMessage

Warning: Unstable API, bound to change

findConstructor(constructorOrId: AbiConstructor | string | number): AbiConstructor
findMessage(messageOrId: AbiMessage | string | number): AbiMessage