Abyiss
HomeAPI KeyContact Us
  • Free API Key
  • Introduction
    • Welcome
    • Getting Started
    • Reading Documentation
    • Client Libraries
    • API Architecture
      • API Keys - Authentication
      • API Server URL
      • Requests & Error Codes
      • Rate Limits
  • Octane API
    • Introduction
    • Integration Guides
      • Crypto Off Ramp APIs - Business Guide
    • References
      • Transaction Types
      • Payment Methods
      • Transaction Fees
      • Partner Fees
    • APIs
      • Transactions
      • Assets
      • Payment Methods
        • Bank Accounts
        • Wallets
      • Subaccounts
      • KYC (Know Your Customer)
  • Crypto API
    • Introduction
    • References
      • Supported Exchanges
      • Historical Data
      • Pagination
      • Return Types
    • REST APIs
      • Exchanges
      • Exchanges Count
      • Exchange Data
      • Exchange Status
      • Exchange Markets
      • Market Details
      • Current Price
      • Aggregates (Bars)
      • Last Aggregate
      • Trades
      • Last Trade
      • Snapshot
      • Order Books
      • Liquidity
      • Whales
    • WebSockets
      • Request Access
  • Blockchain API
    • Introduction
    • References
      • Supported Exchanges
      • Historical Data
      • Pagination
      • Query Parameters
      • Error Handling
    • REST APIs
      • Exchanges
      • Blockchains
      • Blocks
      • Exchange Data
      • Tokens
      • Token Data
      • Token Aggregates (Bars)
      • Token Trades
      • Pools
      • Pool Data
      • Pool Aggregates (Bars)
      • Pool Trades
      • Token Search
    • WebSockets
      • Request Access
  • Alerts API
    • Request Access
  • Changes
    • Changelog
    • Upcoming Changes
  • Resources
    • Glossary
    • Social Media
    • Legal Guide
    • White Paper
    • Deprecated
      • Crypto APIs /v1 - REST APIs
        • Exchanges
        • Exchanges Count
        • Exchange Data
        • Exchange Status
        • Exchange Markets
        • Market Details
        • Current Price
        • Aggregates (Bars)
        • Last Aggregate
        • Trades
        • Last Trade
        • Snapshot
        • Order Books
        • Liquidity
        • Whales
      • Blockchain APIs /v1 - REST APIs
        • Exchanges
        • Blockchains
        • Blocks
        • Exchange Data
        • Tokens
        • Token Data
        • Token Aggregates (Bars)
        • Token Trades
        • Pools
        • Pool Data
        • Pool Aggregates (Bars)
        • Pool Trades
        • Token Search
Powered by GitBook
On this page
  • Get Blocks
  • Get Blockchain Blocks
  • Copy & Paste Code
  • Response Object
  • Response Attributes

Was this helpful?

  1. Resources
  2. Deprecated
  3. Blockchain APIs /v1 - REST APIs

Blocks

Get blocks returns real-time or historical blockchain block numbers and timestamps.

Get Blocks

GET https://api.abyiss.com/v1/blocks

Provides a list of compatible blockchains for retrieving block numbers and timestamps in an array.

Query Parameters

Name
Type
Description

apiKey*

string

Your Abyiss API Key

{
    "Unauthorized": "Invaild API Key"
}

Get Blockchain Blocks

GET https://api.abyiss.com/v1/blocks/{blockchain}

Returns an array of real-time or historical blockchain block numbers and timestamps.

Path Parameters

Name
Type
Description

blockchain*

string

Blockchain for the block numbers.

Query Parameters

Name
Type
Description

apiKey*

string

Your Abyiss API Key

limit

int

Number of results per request. Maximum 1,0000 (defualt 100)

skip

int

Number of results to skip per request.

orderBy

string

Sort the returned data by any field in the API response, such as id, name, symbol, volumeUSD and more.

orderDirection

string

asc or desc return the results sorted by that field in either ascending or descending order.

block

int

The blockchain block number for historical data.

from

int

The start of the aggregate time window for historical data. Unix timestamp in milliseconds.

to

int

The end of the aggregate time window for historical data. Unix timestamp in milliseconds.

[
    {
        "number": "17017595",
        "timestamp": "1681127183",
        "size": "379123",
        "gasLimit": "30000000",
        "gasUsed": "21721808",
        "totalDifficulty": "58750003716598352816469",
        "author": "0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97"
    }
]
{
    "Unauthorized": "Invaild API Key"
}

Copy & Paste Code

curl -H "apiKey: API KEY" https://api.abyiss.com/v1/blocks/ethereum
import urllib.request
url = "https://api.abyiss.com/v1/blocks/ethereum?apiKey="
print(urllib.request.urlopen(url).read())
fetch("https://api.abyiss.com/v1/blocks/ethereum?apiKey=")
  .then(response => response.json())
  .then(data => console.log(data))
require('axios')
  .get("https://api.abyiss.com/v1/blocks/ethereum?apiKey=")
  .then(response => console.log(response))
require 'net/http'
uri = URI("https://api.abyiss.com/v1/blocks/ethereum?apiKey=")
puts Net::HTTP.get(uri)

Response Object

[
    {
        "number": "17017595",
        "timestamp": "1681127183",
        "size": "379123",
        "gasLimit": "30000000",
        "gasUsed": "21721808",
        "totalDifficulty": "58750003716598352816469",
        "author": "0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97"
    }
]

Response Attributes

Attribute Name
Data Type
Description

number

string

Blockchain block number

timestamp

string

Block number timestamp

size

string

Block size

gasLimit

string

Block gas limit

gasUsed

string

Block gas used

totalDifficulty

string

Block total difficulty

author

string

Block author

PreviousBlockchainsNextExchange Data

Last updated 1 year ago

Was this helpful?

Example URL:

https://api.abyiss.com/v1/blocks/ethereum?apiKey=