⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
eos
EOS (EOS)

Method: POST get_raw_code_and_abi

dropdown

# get_raw_code_and_abi example for EOS (EOS)

POST get_raw_code_and_abi

Retrieves raw code and ABI for a contract based on account name

Parameters

account_name - string

Must be one of: - NamePrivileged - String representation of privileged EOSIO name type - NameBasic - String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5 - NameBid - String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed - NameCatchAll - String representation of EOSIO name type

Request

curl --location --request POST 'https://eos.getblock.io/v1/chain/get_raw_code_and_abi' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"account_name": "playuplandme"}'


Response

{
    "abi": "DmVvc2lvOjphYmkvMS4yAD0KQ29sbGVjdGlvbgADAmlkBnVpbnQ2NAt0cmFuc2FjdGlvbgtjaludDY0BWFzc2V0=",
    "account_name": "playuplandme",
    "wasm": "AGFzbQEAAAABhQRJYAAAYAN/f38Bf2ADf35/AX5gBH9/f38AYAJ/fwBgAAF/YAJ/fwF/YAN/f38AYAR/fn5/AGAFf39"
}