Libre Chain Docs
WebsiteAppWalletCreate Account
  • The Libre Platform
    • Libre is a Bitcoin-native, decentralized lending marketplace
    • Borrow
    • Lend
    • Run A Libre Node
    • Validators
    • The Smart Contract Platform
      • Building Smart Contracts on Libre
      • Libre Developer Tools
      • Libre Testnet
      • API Docs
  • DeFi on Libre DEX
    • DeFi
    • libreDEX
    • Ordinals
    • Building on Libre
      • How to add a trading pair
  • BitcoinFi on Libre
    • Glossary
  • The LIBRE Reward Coin
    • A reward system for validators and stakers
    • Supply
    • Mint Rush
    • Spindrop
      • How to Claim the LIBRE Spindrop
      • Eligibility Requirements for the LIBRE Spindrop
  • ACCOUNTS AND WALLETS
    • LIBRE Account Names
      • Cryptographic Keys
    • Creating Multiple Accounts
    • Bitcoin Libre Wallet
    • Anchor Wallet
      • Creating a Libre MainNet Account in Anchor
      • Creating a Libre Testnet Account in Anchor
      • Getting Testnet LIBRE Coins
    • Ledger Hardware Wallet
  • EARN
    • Staking
    • Mining
    • Referrals
    • Become a Validator
    • DAO Tax
    • Libre Lightning Provider
  • Governance
    • Voting Power
    • Validator Election
    • Libre DAO
    • Libre Governance Docs
      • Libre Blockchain Operating Agreement (LBOA)
      • Block Producer Agreement
      • Block Producer Minimum Requirements
    • Libre Mainnet Multisig Gov
      • Oct 2024
      • July 2023
      • June 2023
      • April 2023
      • March 2023
      • February 2023
      • December 2022
  • Technical Details
    • Libre Core Constants
    • Mint Rush Details
    • Staking Details
    • Verifying Code Updates
      • Deployed Smart Contract Versions
  • Cross-Chain Interoperability
    • Cross-Chain Overview
    • Bridge Comparison
    • Libre CrossLink Bridge
      • Technical Whitepaper
      • Bitcoin to Libre (Peg-In Process)
      • Libre to Bitcoin (Peg Out)
    • Bitcoin Lightning Network
    • USDT / Ethereum
    • Legacy pNetwork
    • Bitcoin Audit
Powered by GitBook
On this page

Was this helpful?

Edit on GitLab
  1. The Libre Platform
  2. The Smart Contract Platform

API Docs

Libre Public API servers are provided by validators and apps.

PreviousLibre TestnetNextDeFi

Last updated 8 months ago

Was this helpful?

  • Anyone can run an API node for Libre or Become a Validator

  • A full list of public APIs are available for or .

Please note that regardless of what the swagger docs below say there is a general rule we recommend for using /v1/ and /v2/ paths:

/v1 use POST

/v2 use GET

There is a helpful doc outlining - (built by validator )

Mainnet
Testnet
API Methods here
Cryptobloks

API Service Health Report

get
Responses
200
Default Response
get
GET /v2/health HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

No content

fetch abi at specific block

get

fetch contract abi at specific block

Query parameters
contractstring · min: 1 · max: 12Required

contract account

blockinteger · min: 1Optional

target block

fetchbooleanOptional

should fetch the ABI

Responses
200
Default Response
get
GET /v2/history/get_abi_snapshot HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

No content

get root actions

get

get actions based on notified account. this endpoint also accepts generic filters based on indexed fields (e.g. act.authorization.actor=eosio or act.name=delegatebw), if included they will be combined with a AND operator

Query parameters
limitinteger · min: 1Optional

limit of [n] results per page

skipintegerOptional

skip [n] results

accountstring · min: 1 · max: 12Optional

notified account

trackstringOptional

total results to track (count) [number or true]

filterstring · min: 3Optional

code:name filter

sortstring · enumOptional

sort direction

Possible values:
afterstringOptional

filter after specified date (ISO8601)

beforestringOptional

filter before specified date (ISO8601)

simplebooleanOptional

simplified output mode

hot_onlybooleanOptional

search only the latest hot index

noBinarybooleanOptional

exclude large binary data

checkLibbooleanOptional

perform reversibility check

Responses
200
Default Response
application/json
get
GET /v2/history/get_actions HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

{
  "query_time_ms": 1,
  "cached": true,
  "hot_only": true,
  "lib": 1,
  "last_indexed_block": 1,
  "last_indexed_block_time": "text",
  "total": {
    "value": 1,
    "relation": "text"
  },
  "simple_actions": [
    {
      "block": 1,
      "timestamp": "text",
      "irreversible": true,
      "contract": "text",
      "action": "text",
      "actors": "text",
      "notified": "text",
      "transaction_id": "text",
      "data": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    }
  ],
  "actions": [
    {
      "@timestamp": "text",
      "timestamp": "text",
      "block_num": 1,
      "block_id": "text",
      "trx_id": "text",
      "act": {
        "account": "text",
        "name": "text",
        "authorization": [
          {
            "actor": "text",
            "permission": "text"
          }
        ],
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "receipts": [
        {
          "receiver": "text",
          "global_sequence": 1,
          "recv_sequence": 1,
          "auth_sequence": [
            {
              "account": "text",
              "sequence": 1
            }
          ]
        }
      ],
      "cpu_usage_us": 1,
      "net_usage_words": 1,
      "account_ram_deltas": [
        {
          "account": "text",
          "delta": 1,
          "ANY_ADDITIONAL_PROPERTY": "anything"
        }
      ],
      "global_sequence": 1,
      "producer": "text",
      "parent": 1,
      "action_ordinal": 1,
      "creator_action_ordinal": 1,
      "signatures": [
        "text"
      ]
    }
  ]
}

get created accounts

get

get all accounts created by one creator

Query parameters
limitinteger · min: 1Optional

limit of [n] results per page

skipintegerOptional

skip [n] results

accountstring · min: 1 · max: 12Required

creator account

Responses
200
Default Response
application/json
get
GET /v2/history/get_created_accounts HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

{
  "query_time_ms": 1,
  "cached": true,
  "hot_only": true,
  "lib": 1,
  "last_indexed_block": 1,
  "last_indexed_block_time": "text",
  "total": {
    "value": 1,
    "relation": "text"
  },
  "query_time": 1,
  "accounts": [
    {
      "name": "text",
      "timestamp": "text",
      "trx_id": "text"
    }
  ]
}

get account creator

get

get account creator

Query parameters
accountstring · min: 1 · max: 12Required

created account

Responses
200
Default Response
application/json
get
GET /v2/history/get_creator HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

{
  "query_time_ms": 1,
  "cached": true,
  "hot_only": true,
  "lib": 1,
  "last_indexed_block": 1,
  "last_indexed_block_time": "text",
  "total": {
    "value": 1,
    "relation": "text"
  },
  "account": "text",
  "creator": "text",
  "timestamp": "text",
  "block_num": 1,
  "trx_id": "text",
  "indirect_creator": "text"
}

get state deltas

get

get state deltas

Query parameters
limitinteger · min: 1Optional

limit of [n] results per page

skipintegerOptional

skip [n] results

codestringOptional

contract account

scopestringOptional

table scope

tablestringOptional

table name

payerstringOptional

payer account

afterstringOptional

filter after specified date (ISO8601)

beforestringOptional

filter before specified date (ISO8601)

presentnumberOptional

delta present flag

Responses
200
Default Response
application/json
get
GET /v2/history/get_deltas HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

{
  "query_time_ms": 1,
  "cached": true,
  "hot_only": true,
  "lib": 1,
  "last_indexed_block": 1,
  "last_indexed_block_time": "text",
  "total": {
    "value": 1,
    "relation": "text"
  },
  "deltas": [
    {
      "timestamp": "text",
      "present": 1,
      "code": "text",
      "scope": "text",
      "table": "text",
      "primary_key": "text",
      "payer": "text",
      "block_num": 1,
      "block_id": "text",
      "data": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  ]
}

get producer schedule by version

get

get producer schedule by version

Query parameters
producerstringOptional

search by producer

keystringOptional

search by signing key

afterstringOptional

filter after specified date (ISO8601)

beforestringOptional

filter before specified date (ISO8601)

modestringOptional

search mode (activated or proposed)

versioninteger · min: 1Optional

schedule version

Responses
200
Default Response
application/json
get
GET /v2/history/get_schedule HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

{
  "query_time_ms": 1,
  "cached": true,
  "hot_only": true,
  "lib": 1,
  "last_indexed_block": 1,
  "last_indexed_block_time": "text",
  "total": {
    "value": 1,
    "relation": "text"
  },
  "timestamp": "text",
  "block_num": 1,
  "proposed_block_num": 1,
  "version": 1,
  "producers": [
    {
      "producer_name": "text",
      "name": "text",
      "block_signing_key": "text",
      "legacy_key": "text",
      "keys": [
        "text"
      ]
    }
  ]
}

get transaction by id

get

get all actions belonging to the same transaction

Query parameters
idstringRequired

transaction id

block_hintintegerOptional

block hint to speed up tx recovery

Responses
200
Default Response
get
GET /v2/history/get_transaction HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

No content

get account summary

get

get account data

Query parameters
limitinteger · min: 1Optional

limit of [n] results per page

skipintegerOptional

skip [n] results

accountstring · min: 1 · max: 12Required

account name

Responses
200
Default Response
application/json
get
GET /v2/state/get_account HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

{
  "query_time_ms": 1,
  "cached": true,
  "hot_only": true,
  "lib": 1,
  "last_indexed_block": 1,
  "last_indexed_block_time": "text",
  "total": {
    "value": 1,
    "relation": "text"
  },
  "account": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "links": [
    {
      "timestamp": "text",
      "permission": "text",
      "code": "text",
      "action": "text"
    }
  ],
  "tokens": [
    {
      "symbol": "text",
      "precision": 1,
      "amount": 1,
      "contract": "text"
    }
  ],
  "total_actions": 1,
  "actions": [
    {
      "@timestamp": "text",
      "timestamp": "text",
      "block_num": 1,
      "block_id": "text",
      "trx_id": "text",
      "act": {
        "account": "text",
        "name": "text",
        "authorization": [
          {
            "actor": "text",
            "permission": "text"
          }
        ],
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "receipts": [
        {
          "receiver": "text",
          "global_sequence": 1,
          "recv_sequence": 1,
          "auth_sequence": [
            {
              "account": "text",
              "sequence": 1
            }
          ]
        }
      ],
      "cpu_usage_us": 1,
      "net_usage_words": 1,
      "account_ram_deltas": [
        {
          "account": "text",
          "delta": 1,
          "ANY_ADDITIONAL_PROPERTY": "anything"
        }
      ],
      "global_sequence": 1,
      "producer": "text",
      "parent": 1,
      "action_ordinal": 1,
      "creator_action_ordinal": 1,
      "signatures": [
        "text"
      ]
    }
  ]
}

get accounts by public key

get

get accounts by public key

Query parameters
limitinteger · min: 1Optional

limit of [n] results per page

skipintegerOptional

skip [n] results

public_keystringRequired

public key

detailsbooleanOptional

include permission details

Responses
200
Default Response
application/json
get
GET /v2/state/get_key_accounts HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

{
  "account_names": [
    "text"
  ],
  "permissions": [
    {
      "owner": "text",
      "block_num": 1,
      "parent": "text",
      "last_updated": "text",
      "auth": null,
      "name": "text",
      "present": 1
    }
  ]
}

get permission links

get

get permission links

Query parameters
accountstringOptional

account name

codestringOptional

contract name

actionstringOptional

method name

permissionstringOptional

permission name

Responses
200
Default Response
application/json
get
GET /v2/state/get_links HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

{
  "query_time_ms": 1,
  "cached": true,
  "hot_only": true,
  "lib": 1,
  "last_indexed_block": 1,
  "last_indexed_block_time": "text",
  "total": {
    "value": 1,
    "relation": "text"
  },
  "links": [
    {
      "block_num": 1,
      "timestamp": "text",
      "account": "text",
      "permission": "text",
      "code": "text",
      "action": "text",
      "irreversible": true
    }
  ]
}

get proposals

get

get proposals

Query parameters
proposerstringOptional

filter by proposer

proposalstringOptional

filter by proposal name

accountstringOptional

filter by either requested or provided account

requestedstringOptional

filter by requested account

providedstringOptional

filter by provided account

executedbooleanOptional

filter by execution status

trackstringOptional

total results to track (count) [number or true]

skipintegerOptional

skip [n] actions (pagination)

limitinteger · min: 1Optional

limit of [n] actions per page

Responses
200
Default Response
get
GET /v2/state/get_proposals HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

No content

get all tokens

get

get tokens from an account

Query parameters
limitinteger · min: 1Optional

limit of [n] results per page

skipintegerOptional

skip [n] results

accountstring · min: 1 · max: 12Required

account name

Responses
200
Default Response
get
GET /v2/state/get_tokens HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

No content

get voters

get

get voters

Query parameters
limitinteger · min: 1Optional

limit of [n] results per page

skipintegerOptional

skip [n] results

producerstring · min: 1 · max: 12Optional

filter by voted producer (comma separated)

Responses
200
Default Response
application/json
get
GET /v2/state/get_voters HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

{
  "query_time_ms": 1,
  "cached": true,
  "hot_only": true,
  "lib": 1,
  "last_indexed_block": 1,
  "last_indexed_block_time": "text",
  "total": {
    "value": 1,
    "relation": "text"
  },
  "voters": [
    {
      "account": "text",
      "weight": 1,
      "last_vote": 1,
      "data": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    }
  ]
}

get missed blocks

get

get missed blocks

Query parameters
producerstringOptional

filter by producer

afterstringOptional

filter after specified date (ISO8601)

beforestringOptional

filter before specified date (ISO8601)

min_blocksinteger · min: 1Optional

min. blocks threshold

Responses
200
Default Response
application/json
get
GET /v2/stats/get_missed_blocks HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

{
  "query_time_ms": 1,
  "cached": true,
  "hot_only": true,
  "lib": 1,
  "last_indexed_block": 1,
  "last_indexed_block_time": "text",
  "total": {
    "value": 1,
    "relation": "text"
  },
  "stats": {
    "by_producer": null
  },
  "events": [
    {
      "@timestamp": "text",
      "last_block": 1,
      "schedule_version": 1,
      "size": 1,
      "producer": "text"
    }
  ]
}

Returns an object containing various details about the blockchain.

post

Returns an object containing various details about the blockchain.

Responses
200
Default Response
post
POST /v1/chain/get_info HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

No content

get
Responses
200
Default Response
get
GET /stream-client.js HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Accept: */*
200

Default Response

No content

  • GETAPI Service Health Report
  • GETfetch abi at specific block
  • GETget root actions
  • GETget created accounts
  • GETget account creator
  • GETget state deltas
  • GETget producer schedule by version
  • GETget transaction by id
  • GETget account summary
  • GETget accounts by public key
  • POSTget accounts by public key
  • GETget permission links
  • GETget proposals
  • GETget all tokens
  • GETget voters
  • GETget missed blocks
  • POSTget actions
  • POSTget controlled accounts by controlling accounts
  • POSTget accounts by public key
  • POSTget transaction by id
  • POSTget block traces
  • POSTReturns an object containing rows from the specified table.
  • POSTConvert JSON object to binary
  • POSTRetrieves the ABI for a contract based on its account name
  • POSTReturns an object containing various details about a specific account on the blockchain.
  • POSTRetreives the activated protocol features for producer node
  • POSTReturns an object containing various details about a specific block on the blockchain.
  • POSTRetrieves the block header state
  • POSTRetrieves contract code
  • POSTRetrieves the current balance
  • POSTRetrieves currency stats
  • POSTReturns an object containing various details about the blockchain.
  • POSTRetrieves producers list
  • POSTRetrieves raw ABI for a contract based on account name
  • POSTRetrieves raw code and ABI for a contract based on account name
  • POSTRetrieves the scheduled transaction
  • POSTRetrieves table scope
  • POSTReturns an object containing rows from the specified table.
  • POSTThis method expects a transaction in JSON format and will attempt to apply it to the blockchain.
  • POSTThis method expects a transaction in JSON format and will attempt to apply it to the blockchain.
  • POSTThis method expects a transaction in JSON format and will attempt to apply it to the blockchain.
  • GET/stream-client.js

get accounts by public key

post

get accounts by public key

Body
public_keystringRequired

public key

Responses
200
Default Response
application/json
post
POST /v2/state/get_key_accounts HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "public_key": "text"
}
200

Default Response

{
  "account_names": [
    "text"
  ]
}

get actions

post

legacy get actions query

Body
account_namestring · min: 1 · max: 12Optional

notified account

posintegerOptional

action position (pagination)

offsetintegerOptional

limit of [n] actions per page

filterstring · min: 3Optional

code:name filter

sortstring · enumOptional

sort direction

Possible values:
afterstring · date-timeOptional

filter after specified date (ISO8601)

beforestring · date-timeOptional

filter before specified date (ISO8601)

parentintegerOptional

filter by parent global sequence

Responses
200
Default Response
application/json
post
POST /v1/history/get_actions HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 154

{
  "account_name": "text",
  "pos": 1,
  "offset": 1,
  "filter": "text",
  "sort": "desc",
  "after": "2025-05-28T22:16:30.183Z",
  "before": "2025-05-28T22:16:30.183Z",
  "parent": 1
}
200

Default Response

{
  "query_time": 1,
  "last_irreversible_block": 1,
  "actions": [
    {
      "account_action_seq": 1,
      "global_action_seq": 1,
      "block_num": 1,
      "block_time": "text",
      "action_trace": {
        "action_ordinal": 1,
        "creator_action_ordinal": 1,
        "receipt": {
          "receiver": "text",
          "global_sequence": 1,
          "recv_sequence": 1,
          "auth_sequence": [
            {
              "account": "text",
              "sequence": 1
            }
          ]
        },
        "receiver": "text",
        "act": {
          "account": "text",
          "name": "text",
          "authorization": [
            {
              "ANY_ADDITIONAL_PROPERTY": "anything"
            }
          ],
          "data": {
            "ANY_ADDITIONAL_PROPERTY": "anything"
          },
          "hex_data": "text"
        },
        "trx_id": "text",
        "block_num": 1,
        "block_time": "text"
      }
    }
  ]
}

get controlled accounts by controlling accounts

post

get controlled accounts by controlling accounts

Body
controlling_accountstringRequired

controlling account

Responses
200
Default Response
application/json
post
POST /v1/history/get_controlled_accounts HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 30

{
  "controlling_account": "text"
}
200

Default Response

{
  "controlled_accounts": [
    "text"
  ]
}

get accounts by public key

post

get accounts by public key

Body
public_keystringRequired

public key

Responses
200
Default Response
application/json
post
POST /v1/history/get_key_accounts HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "public_key": "text"
}
200

Default Response

{
  "account_names": [
    "text"
  ]
}

get transaction by id

post

get all actions belonging to the same transaction

Body
idstringRequired

transaction id

block_num_hintintegerOptional

block number hint

Responses
200
Default Response
post
POST /v1/history/get_transaction HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 32

{
  "id": "text",
  "block_num_hint": 1
}
200

Default Response

No content

get block traces

post

get block traces

Body
block_numintegerOptional

block number

block_idstringOptional

block id

Responses
200
Default Response
application/json
post
POST /v1/trace_api/get_block HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 33

{
  "block_num": 1,
  "block_id": "text"
}
200

Default Response

{
  "query_time_ms": 1,
  "cached": true,
  "hot_only": true,
  "lib": 1,
  "last_indexed_block": 1,
  "last_indexed_block_time": "text",
  "total": {
    "value": 1,
    "relation": "text"
  },
  "id": "text",
  "number": 1,
  "previous_id": "text",
  "status": "text",
  "timestamp": "text",
  "producer": "text",
  "transactions": [
    {
      "id": "text",
      "actions": [
        {
          "receiver": "text",
          "account": "text",
          "action": "text",
          "authorization": [
            {
              "account": "text",
              "permission": "text"
            }
          ],
          "data": {
            "ANY_ADDITIONAL_PROPERTY": "anything"
          }
        }
      ]
    }
  ]
}

Returns an object containing rows from the specified table.

post

Returns an object containing rows from the specified table.

Body
codeany ofRequired

String representation of an EOSIO compatible account name

stringOptional

String representation of privileged EOSIO name type

Pattern: ^(eosio[\.][a-z1-5]{1,6})([a-j]{1})?$
or
stringOptional

String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5

Pattern: ^([a-z]{1}[a-z1-5]{11})([a-j]{1})?$
or
stringOptional

String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed

Pattern: ^([a-z1-5]{1,12})([a-j]{1})?$
or
stringOptional

String representation of EOSIO name type

Pattern: ^([a-z1-5]{1}[a-z1-5\.]{0,10}[a-z1-5]{1})([a-j]{1})?$
actionany ofRequired

String representation of an EOSIO compatible account name

stringOptional

String representation of privileged EOSIO name type

Pattern: ^(eosio[\.][a-z1-5]{1,6})([a-j]{1})?$
or
stringOptional

String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5

Pattern: ^([a-z]{1}[a-z1-5]{11})([a-j]{1})?$
or
stringOptional

String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed

Pattern: ^([a-z1-5]{1,12})([a-j]{1})?$
or
stringOptional

String representation of EOSIO name type

Pattern: ^([a-z1-5]{1}[a-z1-5\.]{0,10}[a-z1-5]{1})([a-j]{1})?$
binargsstringRequired
Responses
200
Default Response
post
POST /v1/chain/abi_bin_to_json HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 48

{
  "code": "text",
  "action": "text",
  "binargs": "text"
}
200

Default Response

No content

Convert JSON object to binary

post

Convert JSON object to binary

Body
codeany ofRequired

String representation of an EOSIO compatible account name

stringOptional

String representation of privileged EOSIO name type

Pattern: ^(eosio[\.][a-z1-5]{1,6})([a-j]{1})?$
or
stringOptional

String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5

Pattern: ^([a-z]{1}[a-z1-5]{11})([a-j]{1})?$
or
stringOptional

String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed

Pattern: ^([a-z1-5]{1,12})([a-j]{1})?$
or
stringOptional

String representation of EOSIO name type

Pattern: ^([a-z1-5]{1}[a-z1-5\.]{0,10}[a-z1-5]{1})([a-j]{1})?$
actionany ofRequired

String representation of an EOSIO compatible account name

stringOptional

String representation of privileged EOSIO name type

Pattern: ^(eosio[\.][a-z1-5]{1,6})([a-j]{1})?$
or
stringOptional

String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5

Pattern: ^([a-z]{1}[a-z1-5]{11})([a-j]{1})?$
or
stringOptional

String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed

Pattern: ^([a-z1-5]{1,12})([a-j]{1})?$
or
stringOptional

String representation of EOSIO name type

Pattern: ^([a-z1-5]{1}[a-z1-5\.]{0,10}[a-z1-5]{1})([a-j]{1})?$
Responses
200
Default Response
post
POST /v1/chain/abi_json_to_bin HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 77

{
  "code": "text",
  "action": "text",
  "args": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}
200

Default Response

No content

Retrieves the ABI for a contract based on its account name

post

Retrieves the ABI for a contract based on its account name

Body
account_nameany ofRequired

String representation of an EOSIO compatible account name

stringOptional

String representation of privileged EOSIO name type

Pattern: ^(eosio[\.][a-z1-5]{1,6})([a-j]{1})?$
or
stringOptional

String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5

Pattern: ^([a-z]{1}[a-z1-5]{11})([a-j]{1})?$
or
stringOptional

String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed

Pattern: ^([a-z1-5]{1,12})([a-j]{1})?$
or
stringOptional

String representation of EOSIO name type

Pattern: ^([a-z1-5]{1}[a-z1-5\.]{0,10}[a-z1-5]{1})([a-j]{1})?$
Responses
200
Default Response
post
POST /v1/chain/get_abi HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "account_name": "text"
}
200

Default Response

No content

Returns an object containing various details about a specific account on the blockchain.

post

Returns an object containing various details about a specific account on the blockchain.

Body
account_nameany ofRequired

String representation of an EOSIO compatible account name

stringOptional

String representation of privileged EOSIO name type

Pattern: ^(eosio[\.][a-z1-5]{1,6})([a-j]{1})?$
or
stringOptional

String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5

Pattern: ^([a-z]{1}[a-z1-5]{11})([a-j]{1})?$
or
stringOptional

String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed

Pattern: ^([a-z1-5]{1,12})([a-j]{1})?$
or
stringOptional

String representation of EOSIO name type

Pattern: ^([a-z1-5]{1}[a-z1-5\.]{0,10}[a-z1-5]{1})([a-j]{1})?$
Responses
200
Default Response
post
POST /v1/chain/get_account HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "account_name": "text"
}
200

Default Response

No content

Retreives the activated protocol features for producer node

post

Retreives the activated protocol features for producer node

Body
lower_boundintegerOptional

Lower bound

upper_boundintegerOptional

Upper bound

limitintegerOptional

The limit, default is 10

search_by_block_numbooleanOptional

Flag to indicate it is has to search by block number

reversebooleanOptional

Flag to indicate it has to search in reverse

Responses
200
Default Response
post
POST /v1/chain/get_activated_protocol_features HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 85

{
  "lower_bound": 1,
  "upper_bound": 1,
  "limit": 1,
  "search_by_block_num": true,
  "reverse": true
}
200

Default Response

No content

Returns an object containing various details about a specific block on the blockchain.

post

Returns an object containing various details about a specific block on the blockchain.

Body
block_num_or_idstringRequired

Provide a block number or a block id

Responses
200
Default Response
post
POST /v1/chain/get_block HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 26

{
  "block_num_or_id": "text"
}
200

Default Response

No content

Retrieves the block header state

post

Retrieves the block header state

Body
block_num_or_idstringRequired

Provide a block_number or a block_id

Responses
200
Default Response
post
POST /v1/chain/get_block_header_state HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 26

{
  "block_num_or_id": "text"
}
200

Default Response

No content

Retrieves contract code

post

Retrieves contract code

Body
account_nameany ofRequired

String representation of an EOSIO compatible account name

stringOptional

String representation of privileged EOSIO name type

Pattern: ^(eosio[\.][a-z1-5]{1,6})([a-j]{1})?$
or
stringOptional

String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5

Pattern: ^([a-z]{1}[a-z1-5]{11})([a-j]{1})?$
or
stringOptional

String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed

Pattern: ^([a-z1-5]{1,12})([a-j]{1})?$
or
stringOptional

String representation of EOSIO name type

Pattern: ^([a-z1-5]{1}[a-z1-5\.]{0,10}[a-z1-5]{1})([a-j]{1})?$
code_as_wasmintegerRequired

This must be 1 (true)

Default: 1
Responses
200
Default Response
post
POST /v1/chain/get_code HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 40

{
  "account_name": "text",
  "code_as_wasm": 1
}
200

Default Response

No content

Retrieves the current balance

post

Retrieves the current balance

Body
codeany ofRequired

String representation of an EOSIO compatible account name

stringOptional

String representation of privileged EOSIO name type

Pattern: ^(eosio[\.][a-z1-5]{1,6})([a-j]{1})?$
or
stringOptional

String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5

Pattern: ^([a-z]{1}[a-z1-5]{11})([a-j]{1})?$
or
stringOptional

String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed

Pattern: ^([a-z1-5]{1,12})([a-j]{1})?$
or
stringOptional

String representation of EOSIO name type

Pattern: ^([a-z1-5]{1}[a-z1-5\.]{0,10}[a-z1-5]{1})([a-j]{1})?$
accountany ofRequired

String representation of an EOSIO compatible account name

stringOptional

String representation of privileged EOSIO name type

Pattern: ^(eosio[\.][a-z1-5]{1,6})([a-j]{1})?$
or
stringOptional

String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5

Pattern: ^([a-z]{1}[a-z1-5]{11})([a-j]{1})?$
or
stringOptional

String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed

Pattern: ^([a-z1-5]{1,12})([a-j]{1})?$
or
stringOptional

String representation of EOSIO name type

Pattern: ^([a-z1-5]{1}[a-z1-5\.]{0,10}[a-z1-5]{1})([a-j]{1})?$
symbolstringRequired

A symbol composed of capital letters between 1-7.

Pattern: ^([A-Z]{1,7})$
Responses
200
Default Response
post
POST /v1/chain/get_currency_balance HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 48

{
  "code": "text",
  "account": "text",
  "symbol": "text"
}
200

Default Response

No content

Retrieves currency stats

post

Retrieves currency stats

Body
codeany ofRequired

String representation of an EOSIO compatible account name

stringOptional

String representation of privileged EOSIO name type

Pattern: ^(eosio[\.][a-z1-5]{1,6})([a-j]{1})?$
or
stringOptional

String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5

Pattern: ^([a-z]{1}[a-z1-5]{11})([a-j]{1})?$
or
stringOptional

String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed

Pattern: ^([a-z1-5]{1,12})([a-j]{1})?$
or
stringOptional

String representation of EOSIO name type

Pattern: ^([a-z1-5]{1}[a-z1-5\.]{0,10}[a-z1-5]{1})([a-j]{1})?$
symbolstringRequired

token symbol

Responses
200
Default Response
post
POST /v1/chain/get_currency_stats HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 31

{
  "code": "text",
  "symbol": "text"
}
200

Default Response

No content

Retrieves producers list

post

Retrieves producers list

Body
limitstringOptional

total number of producers to retrieve

lower_boundstringOptional

In conjunction with limit can be used to paginate through the results. For example, limit=10 and lower_bound=10 would be page 2

jsonbooleanOptional

return result in JSON format

Responses
200
Default Response
post
POST /v1/chain/get_producers HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 49

{
  "limit": "text",
  "lower_bound": "text",
  "json": true
}
200

Default Response

No content

Retrieves raw ABI for a contract based on account name

post

Retrieves raw ABI for a contract based on account name

Body
account_nameany ofRequired

String representation of an EOSIO compatible account name

stringOptional

String representation of privileged EOSIO name type

Pattern: ^(eosio[\.][a-z1-5]{1,6})([a-j]{1})?$
or
stringOptional

String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5

Pattern: ^([a-z]{1}[a-z1-5]{11})([a-j]{1})?$
or
stringOptional

String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed

Pattern: ^([a-z1-5]{1,12})([a-j]{1})?$
or
stringOptional

String representation of EOSIO name type

Pattern: ^([a-z1-5]{1}[a-z1-5\.]{0,10}[a-z1-5]{1})([a-j]{1})?$
Responses
200
Default Response
post
POST /v1/chain/get_raw_abi HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "account_name": "text"
}
200

Default Response

No content

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

post

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

Body
account_nameany ofRequired

String representation of an EOSIO compatible account name

stringOptional

String representation of privileged EOSIO name type

Pattern: ^(eosio[\.][a-z1-5]{1,6})([a-j]{1})?$
or
stringOptional

String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5

Pattern: ^([a-z]{1}[a-z1-5]{11})([a-j]{1})?$
or
stringOptional

String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed

Pattern: ^([a-z1-5]{1,12})([a-j]{1})?$
or
stringOptional

String representation of EOSIO name type

Pattern: ^([a-z1-5]{1}[a-z1-5\.]{0,10}[a-z1-5]{1})([a-j]{1})?$
Responses
200
Default Response
post
POST /v1/chain/get_raw_code_and_abi HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "account_name": "text"
}
200

Default Response

No content

Retrieves the scheduled transaction

post

Retrieves the scheduled transaction

Body
lower_boundstringOptional

Date/time string in the format YYYY-MM-DDTHH:MM:SS.sss

Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}$
limitintegerOptional

The maximum number of transactions to return

jsonbooleanOptional

true/false whether the packed transaction is converted to json

Responses
200
Default Response
post
POST /v1/chain/get_scheduled_transaction HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 44

{
  "lower_bound": "text",
  "limit": 1,
  "json": true
}
200

Default Response

No content

Retrieves table scope

post

Retrieves table scope

Body
codestringRequired

name of the contract to return table data for

tablestringOptional

Filter results by table

lower_boundstringOptional

Filters results to return the first element that is not less than provided value in set

upper_boundstringOptional

Filters results to return the first element that is greater than provided value in set

limitintegerOptional

Limit number of results returned.

reversebooleanOptional

Reverse the order of returned results

Responses
200
Default Response
post
POST /v1/chain/get_table_by_scope HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 97

{
  "code": "text",
  "table": "text",
  "lower_bound": "text",
  "upper_bound": "text",
  "limit": 1,
  "reverse": true
}
200

Default Response

No content

Returns an object containing rows from the specified table.

post

Returns an object containing rows from the specified table.

Body
codestringRequired

The name of the smart contract that controls the provided table

tablestringRequired

The name of the table to query

scopestringOptional

The account to which this data belongs

index_positionstringOptional

Position of the index used, accepted parameters primary, secondary, tertiary, fourth, fifth, sixth, seventh, eighth, ninth , tenth

key_typestringOptional

Type of key specified by index_position (for example - uint64_t or name)

encode_typestringOptional
upper_boundstringOptional
lower_boundstringOptional
Responses
200
Default Response
post
POST /v1/chain/get_table_rows HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 150

{
  "code": "text",
  "table": "text",
  "scope": "text",
  "index_position": "text",
  "key_type": "text",
  "encode_type": "text",
  "upper_bound": "text",
  "lower_bound": "text"
}
200

Default Response

No content

This method expects a transaction in JSON format and will attempt to apply it to the blockchain.

post

This method expects a transaction in JSON format and will attempt to apply it to the blockchain.

Body
signaturesstring[]Optional

array of signatures required to authorize transaction

compressionbooleanOptional

Compression used, usually false

packed_context_free_datastringOptional

json to hex

packed_trxstringOptional

Transaction object json to hex

Responses
200
Default Response
post
POST /v1/chain/push_transaction HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 96

{
  "signatures": [
    "text"
  ],
  "compression": true,
  "packed_context_free_data": "text",
  "packed_trx": "text"
}
200

Default Response

No content

This method expects a transaction in JSON format and will attempt to apply it to the blockchain.

post

This method expects a transaction in JSON format and will attempt to apply it to the blockchain.

Body
array | object | stringOptional
Responses
200
Default Response
post
POST /v1/chain/push_transactions HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 503

[
  {
    "expiration": "text",
    "ref_block_num": 1,
    "ref_block_prefix": 1,
    "max_net_usage_words": "text",
    "max_cpu_usage_ms": "text",
    "delay_sec": 1,
    "context_free_actions": [
      {
        "account": "text",
        "name": "text",
        "authorization": [
          {
            "actor": "text",
            "permission": "text"
          }
        ],
        "data": {
          "ANY_ADDITIONAL_PROPERTY": "anything"
        },
        "hex_data": "text"
      }
    ],
    "actions": [
      {
        "account": "text",
        "name": "text",
        "authorization": [
          {
            "actor": "text",
            "permission": "text"
          }
        ],
        "data": {
          "ANY_ADDITIONAL_PROPERTY": "anything"
        },
        "hex_data": "text"
      }
    ],
    "transaction_extensions": [
      [
        1
      ]
    ]
  }
]
200

Default Response

No content

This method expects a transaction in JSON format and will attempt to apply it to the blockchain.

post

This method expects a transaction in JSON format and will attempt to apply it to the blockchain.

Body
signaturesstring[]Optional

array of signatures required to authorize transaction

compressionbooleanOptional

Compression used, usually false

packed_context_free_datastringOptional

json to hex

packed_trxstringOptional

Transaction object json to hex

Responses
200
Default Response
post
POST /v1/chain/send_transaction HTTP/1.1
Host: api.libre.iad.cryptobloks.io
Content-Type: application/json
Accept: */*
Content-Length: 96

{
  "signatures": [
    "text"
  ],
  "compression": true,
  "packed_context_free_data": "text",
  "packed_trx": "text"
}
200

Default Response

No content