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

code_as_wasm
boolean
 
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

Provide the account name

code
string
required

Provide the smart contract name

table
string
required

Provide the table name

json
string
required

Provide true or false

lower_bound
int32

Provide the lower bound

upper_bound
int32

Provide the upper bound

limit
int32

Provide the limit

 
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

Body Params

code
string
account
string

account to get balance of

symbol
string

symbol to query

 
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_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

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_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

Attempts to apply transaction 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

expiration
string
required

Provide the experation

ref_block_num
string
required

Provide the reference block number. See note below.

ref_block_prefix
string
required

Provide the reference block prefix number. See note below.

max_net_usage_words
int64
max_cpu_usage_ms
int32
delay_sec
int32
context_free_actions
array
actions
array
transaction_extensions
string
signatures
array of strings

Provide the signatures for the transaction

context_free_data
array of strings
 

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

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_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

body
json
required

Provide the authorizations for the transaction

 

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

create

Creates a new wallet with the given name.

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

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

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/wallet/create")

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/wallet/create");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/create"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

"PW5KdHAJNyHGvVQfZMebawZrCxUrXoG8wrz55R5EHcfmvjSASuDay"

Body Params

string

Provide the name of the wallet to create

 
Suggest Edits

open

Opens an existing wallet of the given name.

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

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

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/wallet/open")

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/wallet/open");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/open"

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

Provide the name of the wallet to open

 
Suggest Edits

lock

Locks an existing wallet of the given name.

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

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

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/wallet/lock")

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/wallet/lock");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/lock"

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

Provide the name of the wallet to lock

 
Suggest Edits

lock_all

Locks all existing wallets.

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

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

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/wallet/lock_all")

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/wallet/lock_all");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/lock_all"

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

unlock

Unlocks a wallet with the given name and password.

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

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

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/wallet/unlock")

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/wallet/unlock");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/unlock"

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

array of strings

Provide the wallet name and password to unlock

 

Example

["default", "PW5KFWYKqvt63d4iNvedfDEPVZL227D3RQ1zpVFzuUwhMAJmRAYyX"]
Suggest Edits

import_key

Imports a private key to the wallet of the given name.

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

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

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/wallet/import_key")

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/wallet/import_key");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/import_key"

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

array of strings
 

Example

["default","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]
Suggest Edits

list_wallets

Lists all wallets.

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

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

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/wallet/list_wallets")

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/wallet/list_wallets");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/list_wallets"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

["default *"]
 
Suggest Edits

list_keys

Lists all key pairs across all wallets.

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

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/wallet/list_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/wallet/list_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/wallet/list_keys");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/list_keys"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

["EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]
 
Suggest Edits

get_public_keys

Lists all public keys across all wallets.

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

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/wallet/get_public_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/wallet/get_public_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/wallet/get_public_keys");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/get_public_keys"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

["EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV"]
 
Suggest Edits

set_timeout

Sets wallet auto lock timeout (in seconds).

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

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

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/wallet/set_timeout")

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/wallet/set_timeout");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/set_timeout"

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

int32

Provide number of seconds before wallet to auto locks

 
Suggest Edits

sign_transaction

Signs a transaction.

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

var options = { method: 'POST',
  url: 'http://127.0.0.1:8888/v1/wallet/sign_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/wallet/sign_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/wallet/sign_transaction");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/sign_transaction"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

{
  "ref_block_num": 21453,
  "ref_block_prefix": 3165644999,
  "expiration": "2017-12-08T10:28:49",
  "scope": [
    "initb",
    "initc"
  ],
  "read_scope": [],
  "messages": [
    {
      "code": "currency",
      "type": "transfer",
      "authorization": [
        {
          "account": "initb",
          "permission": "active"
        }
      ],
      "data": "000000008093dd74000000000094dd74e803000000000000"
    }
  ],
  "signatures": [
    "1f393cc5ce6a6951fb53b11812345bcf14ffd978b07be386fd639eaf440bca7dca16b14833ec661ca0703d15e55a2a599a36d55ce78c4539433f6ce8bcee0158c3"
  ]
}

Body Params

txn
string
keys
string
id
string

The ID for the chain this transaction is targeted towards.

 

Example

[{
  "ref_block_num": 21453,
  "ref_block_prefix": 3165644999,
  "expiration": "2017-12-08T10:28:49",
  "scope": ["initb", "initc"],
  "read_scope": [],
  "messages": [{
    "code": "currency",
    "type": "transfer",
    "authorization": [{
      "account": "initb",
      "permission": "active"
    }],
    "data": "000000008093dd74000000000094dd74e803000000000000"
  }],
  "signatures": []
},
 ["EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV"], ""
]
 
posthttp://127.0.0.1:8888/v1/wallet/set_dir
curl --request POST \
  --url http://127.0.0.1:8888/v1/wallet/set_dir
var request = require("request");

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

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/wallet/set_dir")

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/wallet/set_dir");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/set_dir"

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_eosio_key

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

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

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/wallet/set_eosio_key")

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/wallet/set_eosio_key");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/set_eosio_key"

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

sign_digest

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

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

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/wallet/sign_digest")

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/wallet/sign_digest");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/sign_digest"

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

digest
string
key
string
 
Suggest Edits

create_key

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

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

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/wallet/create_key")

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/wallet/create_key");

xhr.send(data);
import requests

url = "http://127.0.0.1:8888/v1/wallet/create_key"

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

print(response.text)
A binary file was returned

You couldn't be authenticated

["default", "K1"]

Body Params

array of strings

Positional arguments, name of the account [0] and key type [1] in an

 
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
int32
 
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_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

 
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