Nodeos

Suggest Edits

get_info

Returns an object containing various details about the blockchain.

 
posthttp://127.0.0.1:8888/v1/chain/get_info
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/get_info
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/get_info' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/get_info")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/get_info");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/get_info"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
	"server_version": "d9ad8eec",
	"head_block_num": 8592,
	"last_irreversible_block_num": 8591,
	"head_block_id": "00002190e805475db152be7d3f4f1a075efaed42827cd551b0e23c7feabbedac",
	"head_block_time": "2018-04-27T17:40:34",
	"head_block_producer": "eosio"
}
 
Suggest Edits

get_block

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

 
posthttp://127.0.0.1:8888/v1/chain/get_block
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/get_block
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/get_block' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/get_block")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/get_block");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/get_block"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
	"previous": "00000004471d48fe40706e73ce27f9cf7bac1704ae55279c7a58c0173718a711",
	"timestamp": "2018-04-18T16:24:23.500",
	"transaction_mroot": "e366c0cc3519bb0f2ddaec20928fa4d6aae546194bb1c4205c67be429147ed4a",
	"action_mroot": "77e5e91b594ab4ebc44ebc8c7ecdc9d26409c5a07452d3b20a4840562fdeb658",
	"block_mroot": "4ef85b0d212f3fffabdd65680d32dd7dded3461d9df226a6e3dc232e42978f8b",
	"producer": "eosio",
	"schedule_version": 0,
	"new_producers": null,
	"producer_signature": "EOSJzEdFDsueKCerL7a6AdxMxiT851cEiugFB7ux1PAGn5eMmco8j32NsaKupxibheQGVFEqyEdjMub67VZjKmsLzuNxxKtUA",
	"regions": [{
		"region": 0,
		"cycles_summary": [
			[{
				"read_locks": [],
				"write_locks": [],
				"transactions": [{
					"status": "executed",
					"kcpu_usage": 2,
					"net_usage_words": 38,
					"id": "9880c128683e24845ccd282ebe026bd522f7fa9c6278d885f6ed35164c680669"
				}]
			}]
		]
	}],
	"input_transactions": [],
	"id": "000000056d75b0581b4fbb96affa36669a37173d21f46f8cb974f760e94bbe14",
	"block_num": 5,
	"ref_block_prefix": 2528857883
}

Body Params

block_num_or_id
string
required

Provide a block number or a block id

 
Suggest Edits

get_block_header_state

 
posthttp://127.0.0.1:8888/v1/chain/get_block_header_state
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/get_block_header_state
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/get_block_header_state' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/get_block_header_state")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/get_block_header_state");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/get_block_header_state"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

block_num_or_id
string

Provide a block number or a block id

 
Suggest Edits

get_account

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

 
posthttp://127.0.0.1:8888/v1/chain/get_account
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/get_account
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/get_account' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/get_account")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/get_account");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/get_account"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
	"account_name": "eosio",
	"permissions": [{
		"perm_name": "active",
		"parent": "owner",
		"required_auth": {
			"threshold": 1,
			"keys": [{
				"key": "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV",
				"weight": 1
			}],
			"accounts": []
		}
	}, {
		"perm_name": "owner",
		"parent": "",
		"required_auth": {
			"threshold": 1,
			"keys": [{
				"key": "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV",
				"weight": 1
			}],
			"accounts": []
		}
	}]
}

Body Params

account_name
string
required

Provide an account name

 
 
posthttp://127.0.0.1:8888/v1/chain/get_abi
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/get_abi
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/get_abi' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/get_abi")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/get_abi");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/get_abi"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

account_name
string

name of account to retrieve ABI for

 
Suggest Edits

get_code

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

 
posthttp://127.0.0.1:8888/v1/chain/get_code
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/get_code
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/get_code' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/get_code")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/get_code");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/get_code"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "name":"currency",
  "code_hash":"a1c8c84b4700c09c8edb83522237439e33cf011a4d7ace51075998bd002e04c9",
  "wast":"(module\n  (type $0 (func (param i64 i64 i32) (result i32)))\n ...truncated",
  "abi": {
  "types": [{
      "new_type_name": "account_name",
      "type": "name"
    }
  ],
  "structs": [{
      "name": "transfer",
      "base": "",
      "fields": [
        {"name":"from", "type":"account_name"},
        {"name":"to", "type":"account_name"},
        {"name":"quantity", "type":"uint64"}
      ]
    },{
      "name": "account",
      "base": "",
      "fields": [
        {"name":"key", "type":"name"},
        {"name":"balance", "type":"uint64"}
      ]
    }
  ],
  "actions": [{
      "name": "transfer",
      "type": "transfer"
    }
  ],
  "tables": [{
      "name": "account",
      "type": "account",
      "index_type": "i64",
      "key_names" : ["key"],
      "key_types" : ["name"]
    }
  ]
}

Body Params

account_name
string
required

Provide a smart contract account name

 

Attention

code_as_wasm was deprecated as of 1.2.2.

Suggest Edits

get_raw_code_and_abi

 
posthttp://127.0.0.1:8888/v1/chain/get_raw_code_and_abi
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/get_raw_code_and_abi
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/get_raw_code_and_abi' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/get_raw_code_and_abi")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/get_raw_code_and_abi");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/get_raw_code_and_abi"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

account_name
string

Account name to get code and abi for

 
Suggest Edits

get_table_rows

Returns an object containing rows from the specified table.

 
posthttp://127.0.0.1:8888/v1/chain/get_table_rows
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/get_table_rows
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/get_table_rows' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/get_table_rows")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/get_table_rows");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/get_table_rows"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "rows": [
    {
      "account": "account",
      "balance": 1000
    }
  ],
  "more": false
}

Body Params

scope
string
required

The account name where the scope of the data resides

code
string
required

The name of the smart contract that controls the provided table

table
string
required

The name of the table to query

table_key
string
json
boolean
required

Return json object or return formatted response

lower_bound
string

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

upper_bound
string

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

limit
int32

Limit results returned in response

index_position
string

Position of the index used, for example, 1 for primary index, 2 for secondary index, etc

key_type
string

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

encode_type
string
 
Suggest Edits

get_table_by_scope

 
posthttp://127.0.0.1:8888/v1/chain/get_table_by_scope
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/get_table_by_scope
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/get_table_by_scope' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/get_table_by_scope")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/get_table_by_scope");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/get_table_by_scope"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

code
string
required

name of the contract to return table data for

table
string

Filter results by table

lower_bound
string

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

upper_bound
string

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

limit
int32

Limit number of results returned.

 
Suggest Edits

get_currency_balance

 
posthttp://127.0.0.1:8888/v1/chain/get_currency_balance
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/get_currency_balance
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/get_currency_balance' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/get_currency_balance")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/get_currency_balance");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/get_currency_balance"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Query Params

code
string
account
string

account to get balance of

symbol
string

symbol to query

 
Suggest Edits

abi_json_to_bin

Serializes json to binary hex. The resulting binary hex is usually used for the data field in push_transaction.

 
posthttp://127.0.0.1:8888/v1/chain/abi_json_to_bin
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/abi_json_to_bin
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/abi_json_to_bin' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/abi_json_to_bin")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/abi_json_to_bin");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/abi_json_to_bin"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "binargs": "000000008093dd74000000000094dd74e803000000000000",
  "required_scope": [],
  "required_auth": []
}

Body Params

code
string

Provide the account name.

action
string

Provide the action arguments

args
json

Provide the json arguments

 
Suggest Edits

abi_bin_to_json

Serializes binary hex to json.

 
posthttp://127.0.0.1:8888/v1/chain/abi_bin_to_json
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/abi_bin_to_json
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/abi_bin_to_json' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/abi_bin_to_json")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/abi_bin_to_json");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/abi_bin_to_json"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "args": {
    "from": "initb",
    "to": "initc",
    "quantity": 1000
  },
  "required_scope": [],
  "required_auth": []
}

Body Params

code
string
required

Provide the smart contract account name

action
string
required

Provide the action name

binargs
string
required

Provide the binary arguments

 
Suggest Edits

get_required_keys

Returns the required keys needed to sign a transaction.

 
posthttp://127.0.0.1:8888/v1/chain/get_required_keys
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/get_required_keys
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/get_required_keys' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/get_required_keys")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/get_required_keys");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/get_required_keys"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "required_keys": [
    "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV"
  ]
}

Body Params

transaction
json
required

Provide the transaction object

available_keys
array of strings
required

Provide the available keys

 

Examples

transaction

{
  "ref_block_num": "100",
  "ref_block_prefix": "137469861",
  "expiration": "2017-09-25T06:28:49",
  "scope": ["initb", "initc"],
  "actions": [{
    "code": "currency",
    "type": "transfer",
    "recipients": ["initb", "initc"],
    "authorization": [{
      "account": "initb",
      "permission": "active"
    }],
    "data": "000000000041934b000000008041934be803000000000000"
  }],
  "signatures": [],
  "authorizations": []
}

available_keys

["EOS4toFS3YXEQCkuuw1aqDLrtHim86Gz9u3hBdcBw5KNPZcursVHq",
 "EOS7d9A3uLe6As66jzN8j44TXJUqJSK3bFjjEEqR4oTvNAB3iM9SA",
 "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV"]
Suggest Edits

get_currency_stats

 
posthttp://127.0.0.1:8888/v1/chain/get_currency_stats
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/get_currency_stats
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/get_currency_stats' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/get_currency_stats")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/get_currency_stats");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/get_currency_stats"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

code
string
symbol
string

currency symbol to get the stats for

 
Suggest Edits

get_producers

 
posthttp://127.0.0.1:8888/v1/chain/get_producers
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/get_producers
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/get_producers' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/get_producers")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/get_producers");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/get_producers"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

limit
string

total number of producers to retrieve

lower_bound
string
json
boolean

return result in JSON format?

 
Suggest Edits

push_block

 
posthttp://127.0.0.1:8888/v1/chain/push_block
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/push_block
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/push_block' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/push_block")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/push_block");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/push_block"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

timestamp
date-time
producer
string
confirmed
int32
previous
string
transaction_mroot
string
action_mroot
int32
version
string
new_producers
array of strings
header_extensions
array of strings
producer_signature
string
transactions
array
block_extensions
array of strings
 
Suggest Edits

push_transaction

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

 
posthttp://127.0.0.1:8888/v1/chain/push_transaction
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/push_transaction
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/push_transaction' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/push_transaction")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/push_transaction");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/push_transaction"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
	'transaction_id' = "1..."
}

Body Params

signatures
array of strings

array of signatures required to authorize transaction

compression
string

compression used, usually false

packed_context_free_data
string

json to hex

packed_trx
string

json to hex

 
Suggest Edits

push_transactions

This method expects a transactions in JSON format and will attempt to apply it to the blockchain. This method push multiple transactions at once.

 
posthttp://127.0.0.1:8888/v1/chain/push_transactions
curl --request POST \
  --url http://127.0.0.1:8888/v1/chain/push_transactions
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/chain/push_transactions' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/chain/push_transactions")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/chain/push_transactions");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/chain/push_transactions"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{
	'transaction_id' = "1..."
}

Body Params

body
json
required

Provide the authorizations for the transaction

 

Note

The ref_block_num and ref_block_prefix here are provided as a result of /v1/chain/get_block of the last_irreversible_block. The last_irreversible_block can be found by calling /v1/chain/get_info. You also need to use /v1/wallet/sign_transaction to get the right signature.

Suggest Edits

get_actions

 
posthttp://127.0.0.1:8888/v1/history/get_actions
curl --request POST \
  --url http://127.0.0.1:8888/v1/history/get_actions
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/history/get_actions' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/history/get_actions")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/history/get_actions");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/history/get_actions"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

pos
int32
offset
int32
account_name
string
 
Suggest Edits

get_transaction

 
posthttp://127.0.0.1:8888/v1/history/get_transaction
curl --request POST \
  --url http://127.0.0.1:8888/v1/history/get_transaction
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/history/get_transaction' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/history/get_transaction")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/history/get_transaction");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/history/get_transaction"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

id
string
 

need block_num_hint in parameter list.

Suggest Edits

get_key_accounts

 
posthttp://127.0.0.1:8888/v1/history/get_key_accounts
curl --request POST \
  --url http://127.0.0.1:8888/v1/history/get_key_accounts
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/history/get_key_accounts' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/history/get_key_accounts")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/history/get_key_accounts");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/history/get_key_accounts"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

public_key
string
 
Suggest Edits

get_controlled_accounts

 
posthttp://127.0.0.1:8888/v1/history/get_controlled_accounts
curl --request POST \
  --url http://127.0.0.1:8888/v1/history/get_controlled_accounts
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/history/get_controlled_accounts' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/history/get_controlled_accounts")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/history/get_controlled_accounts");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/history/get_controlled_accounts"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

controlling_account
string
 
 
posthttp://127.0.0.1:8888/v1/net/connect
curl --request POST \
  --url http://127.0.0.1:8888/v1/net/connect
var request = require("request");

var options = { method: 'POST', url: 'http://127.0.0.1:8888/v1/net/connect' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/net/connect")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/net/connect");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/net/connect"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

string
 
Suggest Edits

disconnect

 
posthttp://127.0.0.1:8888/v1/net/disconnect
curl --request POST \
  --url http://127.0.0.1:8888/v1/net/disconnect
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/net/disconnect' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/net/disconnect")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/net/disconnect");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/net/disconnect"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

string
 
Suggest Edits

connections

 
posthttp://127.0.0.1:8888/v1/net/connections
curl --request POST \
  --url http://127.0.0.1:8888/v1/net/connections
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/net/connections' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/net/connections")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/net/connections");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/net/connections"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results
 
posthttp://127.0.0.1:8888/v1/net/status
curl --request POST \
  --url http://127.0.0.1:8888/v1/net/status
var request = require("request");

var options = { method: 'POST', url: 'http://127.0.0.1:8888/v1/net/status' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/net/status")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/net/status");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/net/status"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results
 
posthttp://127.0.0.1:8888/v1/producer/pause
curl --request POST \
  --url http://127.0.0.1:8888/v1/producer/pause
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/producer/pause' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/producer/pause")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/producer/pause");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/producer/pause"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results
 
posthttp://127.0.0.1:8888/v1/producer/resume
curl --request POST \
  --url http://127.0.0.1:8888/v1/producer/resume
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/producer/resume' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/producer/resume")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/producer/resume");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/producer/resume"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results
 
posthttp://127.0.0.1:8888/v1/producer/paused
curl --request POST \
  --url http://127.0.0.1:8888/v1/producer/paused
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/producer/paused' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/producer/paused")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/producer/paused");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/producer/paused"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results
 
Suggest Edits

get_runtime_options

 
posthttp://127.0.0.1:8888/v1/producer/get_runtime_options
curl --request POST \
  --url http://127.0.0.1:8888/v1/producer/get_runtime_options
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/producer/get_runtime_options' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/producer/get_runtime_options")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/producer/get_runtime_options");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/producer/get_runtime_options"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results
 
Suggest Edits

update_runtime_options

 
posthttp://127.0.0.1:8888/v1/producer/update_runtime_options
curl --request POST \
  --url http://127.0.0.1:8888/v1/producer/update_runtime_options
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/producer/update_runtime_options' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/producer/update_runtime_options")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/producer/update_runtime_options");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/producer/update_runtime_options"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

max_transaction_time
int32
max_irreversible_block_age
int32
produce_time_offset_us
int32
last_block_time_offset_us
int32
incoming_defer_ratio
int32
subjective_cpu_leeway_us
int32
 
Suggest Edits

get_greylist

Returns producer greylist

 
posthttp://127.0.0.1:8888/v1/producer/get_greylist
curl --request POST \
  --url http://127.0.0.1:8888/v1/producer/get_greylist
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/producer/get_greylist' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/producer/get_greylist")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/producer/get_greylist");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/producer/get_greylist"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

{"accounts":["a11111111111","aaa","bbb"]}
 
Suggest Edits

add_greylist_accounts

 
posthttp://127.0.0.1:8888/v1/producer/add_greylist_accounts
curl --request POST \
  --url http://127.0.0.1:8888/v1/producer/add_greylist_accounts
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/producer/add_greylist_accounts' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/producer/add_greylist_accounts")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/producer/add_greylist_accounts");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/producer/add_greylist_accounts"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

accounts
array of strings

Accounts to add to greylist

 
Suggest Edits

remove_greylist_accounts

 
posthttp://127.0.0.1:8888/v1/producer/remove_greylist_accounts
curl --request POST \
  --url http://127.0.0.1:8888/v1/producer/remove_greylist_accounts
var request = require("request");

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/producer/remove_greylist_accounts' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/producer/remove_greylist_accounts")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/producer/remove_greylist_accounts");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/producer/remove_greylist_accounts"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results

Body Params

accounts
array of strings

Accounts to add to greylist

 
Suggest Edits

get_whitelist_blacklist

Returns producer whitelist & blacklist

 
posthttp://127.0.0.1:8888/v1/producer
curl --request POST \
  --url http://127.0.0.1:8888/v1/producer
var request = require("request");

var options = { method: 'POST', url: 'http://127.0.0.1:8888/v1/producer' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/producer")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/producer");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/producer"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results
 
Suggest Edits

set_whitelist_blacklist

 
posthttp://127.0.0.1:8888/v1/producer
curl --request POST \
  --url http://127.0.0.1:8888/v1/producer
var request = require("request");

var options = { method: 'POST', url: 'http://127.0.0.1:8888/v1/producer' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/producer")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/producer");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/producer"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results
 
posthttp://127.0.0.1:8888/v1/db_size/get
curl --request POST \
  --url http://127.0.0.1:8888/v1/db_size/get
var request = require("request");

var options = { method: 'POST', url: 'http://127.0.0.1:8888/v1/db_size/get' };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
require 'uri'
require 'net/http'

url = URI("http://127.0.0.1:8888/v1/db_size/get")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
var data = JSON.stringify(false);

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open("POST", "http://127.0.0.1:8888/v1/db_size/get");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/db_size/get"

response = requests.request("POST", url)

print(response.text)
A binary file was returned

You couldn't be authenticated

Try the API to see results