get_raw_abi

The get_raw_abi method is used to fetch the raw, serialized ABI (Application Binary Interface) for a specified account, providing essential details needed for interacting with smart contracts on the EOS network.

Example use cases:

Smart Contract Interaction
Developers or users may use the get_raw_abi method to obtain the raw ABI of a smart contract, essential for decoding binary data and enabling effective interaction with the contract.

ABI Analysis and Verification
The method allows developers and analysts to study and analyze the ABI of a contract, verify its integrity, and understand its structure and methods by comparing the retrieved abi_hash with known hash values.

Development and Debugging
This method is crucial for developers during the development and debugging phases, enabling quick access to and assessment of the ABI, ensuring alignment with the contract’s intended design and functionality.


Parameters

The getRawAbi method has one parameter:

accountName (string, required): The unique EOSIO account name of the smart contract whose ABI is to be retrieved.

parameter
type
description
accountName
string
The EOSIO account name of the smart contract whose raw ABI is to be retrieved.

Return Object

The method returns an object containing the raw ABI and related metadata.

field
description
account_name
The name of the account whose ABI was retrieved.
code_hash
The hash of the smart contract code.
abi_hash
The hash of the smart contract ABI.
abi
The raw, serialized ABI data of the smart contract.

JSON-RPC Request Example

get_raw_abi Request
Response Example
get_raw_abi Response

Share on
Share on FacebookShare on XShare on LinkedIn
Did you find this page useful?