NAV
php Javascript Python Ruby Shell Go

Introduction

Welcome to the SIB API! You can use our API to access SIB API endpoints, which can get information on various cats, SIB, and breeds in our database.

We have language bindings in Shell, Ruby, and Python! You can view code examples in the dark area to the right, and you can switch the programming language of the examples with the tabs in the top right.

SIB

Get a Specific SIB


package main

import (
    "fmt"
    "net/http"
    "io/ioutil"
)

func main() {

    url := "https://sibblockchain.com/api/v1/mempool/txns"

    req, _ := http.NewRequest("GET", url, nil)

    req.Header.Add("Cache-Control", "no-cache")
    req.Header.Add("Postman-Token", "68e62637-1cc4-498f-ad15-b0d9a8334018")

    res, _ := http.DefaultClient.Do(req)

    defer res.Body.Close()
    body, _ := ioutil.ReadAll(res.Body)

    fmt.Println(res)
    fmt.Println(string(body))

}

The above command returns JSON structured like this:


    {
        "error": false,
        "data": "[]",
        "total": "0",
    }

This endpoint retrieves Mempool List Tx.

HTTP Request

GET https://sibblockchain.com/api/v1/mempool/txns

URL Parameters

Parameter Description
Null Null

Errors

The SIB API uses the following error codes:

Error Code Meaning
400 Bad Request – Your request sucks
401 Unauthorized – Your API key is wrong
403 Forbidden – The SIB requested is hidden for administrators only
404 Not Found – The specified SIB could not be found
405 Method Not Allowed – You tried to access a SIB with an invalid method
406 Not Acceptable – You requested a format that isn’t json
410 Gone – The SIB requested has been removed from our servers
418 I’m a teapot
429 Too Many Requests – You’re requesting too many SIB! Slow down!
500 Internal Server Error – We had a problem with our server. Try again later.
503 Service Unavailable – We’re temporarially offline for maintanance. Please try again later.