Factomd
This is the API reference for the factomd process. The API is designed for outside application to process transactions and interact with the Factom federated servers. It’s listening port can be configured and runs on 8088 by default.
All these APIs use JSON-RPC, which is a remote procedure call protocol encoded in JSON. It is a very simple protocol (and very similar to XML-RPC), defining only a handful of data types and commands.
They can be invoked in your terminal as:
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method": "METHOD_HERE", "params": {"PARAM_1":"PARAM_DATA_1"}}' -H 'content-type:text/plain;' http://localhost:8088/v2
The output will also be JSON.
The right panel will contain the curl commands to be run in your terminal, as well as the JSON structures of the request and response. The JSON structs detail the required parameters for each call.

ablock-by-height

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"ablock-by-height", "params": {"height":1}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"ablock": {
6
"header": {
7
"prevbackrefhash": "77e4fb398e228ec9710c20988647a01e2259a40ab77e27c005baf7f2deae3415",
8
"dbheight": 14460,
9
"headerexpansionsize": 0,
10
"headerexpansionarea": "",
11
"messagecount": 4,
12
"bodysize": 516,
13
"adminchainid": "000000000000000000000000000000000000000000000000000000000000000a",
14
"chainid": "000000000000000000000000000000000000000000000000000000000000000a"
15
},
16
"abentries": [
17
{
18
"identityadminchainid": "888888e238492b2d723d81f7122d4304e5405b18bd9c7cb22ca6bcbc1aab8493",
19
"prevdbsig": {
20
"pub": "0186ad82617edf3565d944aa104590eb6adb338e92ee6fcd750c2ab2b2707e25",
21
"sig": "5796cd49835088ea0d6b8e4a75611ebc674fb791d6e9ebc7f6e5bb1a5e86fc25a8a7742e8f60870e2cb8523fd122ef54bb95ac94b3676b81e07c921ed2196508"
22
}
23
},
24
{
25
"identityadminchainid": "888888fc37fa418395eeccb95ab0a4c64d528b2aeefa0d1632c8a116a0e4f5b1",
26
"prevdbsig": {
27
"pub": "c845f47df202a649e2262d3da0e35556aab62e361425ad7d2e7813a215c8f277",
28
"sig": "a5c976c4d18814916fc893f7b4dee78120d20e0deab2b04df2e3b67c2ea1123224db28559ca6d022822388a5ce41128bf5a09ccbbd02b1c5b17a4152183a3d06"
29
}
30
},
31
{
32
"identityadminchainid": "88888815ac8a1ab6b8f57cee67ba15aad23ab7d8e70ffdca064200738c201f74",
33
"prevdbsig": {
34
"pub": "f18512813300d8c1d11e78216d0640ddcc35156a20b53d5ced351a7d5ad90010",
35
"sig": "1051c165d7ad33e1f764bb96e5e661053da381ebd708c8ac137da2a1b6847eac07e83472d4fa6096768c7904760c821e45b5ebe23a691cc5bad1b61937f9e303"
36
}
37
},
38
{
39
"identityadminchainid": "888888271203752870ae5e6fa0cf96f93cf14bd052455ad476ab26de1ad2c077",
40
"prevdbsig": {
41
"pub": "4f2d34f0417297e2e985e0cc6e4cf3d0814416d09f37af7375517ea236786ed3",
42
"sig": "01206ff2963af7df29bb6749a4c29bc1eb65a48bd7b3ec6590c723e11c3a3c5342e72f9b079a58d77a2562c25289d799fadfc5205f1e99c4f1d5c3ce85432906"
43
}
44
}
45
],
46
"backreferencehash": "1786de6a72311dd4b60c6608d60c2b9367642fb1ee6b867b2c9f4c57c87b8cba",
47
"lookuphash": "574e7d6178e04c92879601f0cb84a619f984eb2617ff9e76ee830a9f614cc9a0"
48
},
49
"rawdata": "000000000000000000000000000000000000000000000000000000000000000a77e4fb398e228ec9710c20988647a01e2259a40ab77e27c005baf7f2deae34150000387c00000000040000020401888888e238492b2d723d81f7122d4304e5405b18bd9c7cb22ca6bcbc1aab84930186ad82617edf3565d944aa104590eb6adb338e92ee6fcd750c2ab2b2707e255796cd49835088ea0d6b8e4a75611ebc674fb791d6e9ebc7f6e5bb1a5e86fc25a8a7742e8f60870e2cb8523fd122ef54bb95ac94b3676b81e07c921ed219650801888888fc37fa418395eeccb95ab0a4c64d528b2aeefa0d1632c8a116a0e4f5b1c845f47df202a649e2262d3da0e35556aab62e361425ad7d2e7813a215c8f277a5c976c4d18814916fc893f7b4dee78120d20e0deab2b04df2e3b67c2ea1123224db28559ca6d022822388a5ce41128bf5a09ccbbd02b1c5b17a4152183a3d060188888815ac8a1ab6b8f57cee67ba15aad23ab7d8e70ffdca064200738c201f74f18512813300d8c1d11e78216d0640ddcc35156a20b53d5ced351a7d5ad900101051c165d7ad33e1f764bb96e5e661053da381ebd708c8ac137da2a1b6847eac07e83472d4fa6096768c7904760c821e45b5ebe23a691cc5bad1b61937f9e30301888888271203752870ae5e6fa0cf96f93cf14bd052455ad476ab26de1ad2c0774f2d34f0417297e2e985e0cc6e4cf3d0814416d09f37af7375517ea236786ed301206ff2963af7df29bb6749a4c29bc1eb65a48bd7b3ec6590c723e11c3a3c5342e72f9b079a58d77a2562c25289d799fadfc5205f1e99c4f1d5c3ce85432906"
50
}
51
}
Copied!
Retrieve administrative blocks for any given height.
The admin block contains data related to the identities within the factom system and the decisions the system makes as it builds the block chain. The ‘abentries’ (admin block entries) in the JSON response can be of various types, the most common is a directory block signature (DBSig). A majority of the federated servers sign every directory block, meaning every block after m5 will contain 5 DBSigs in each admin block.

ack

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0,
2
"method":"ack", "params":{"hash":
3
"e96cca381bf25f6dd4dfdf9f7009ff84ee6edaa3f47f9ccf06d2787482438f4b", "chainid":"f9164cd66af9d5773b4523a510b5eefb9a5e626480feeb6671ef2d17510ca300", "fulltransaction":""}}' \
4
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
This API call is used to find the status of a transaction, whether it be a factoid, reveal entry, or commit entry. When using this, you must specify the type of the transaction by giving the chainid field 1 of 3 values:
  • f for factoid transactions
  • c for entry credit transactions (commit entry/chain)
  • ################################################################ for reveal entry/chain
    • Where # is the ChainID of the entry
The status types returned are as follows:
  • Unknown” : Not found anywhere
  • NotConfirmed” : Found on local node, but not in network (Holding Map)
  • TransactionACK” : Found in network, but not written to the blockchain yet (ProcessList)
  • DBlockConfirmed” : Found in Blockchain
You may also provide the full marshaled transaction, instead of a hash, and it will be hashed for you.
The responses vary based on the type:

Entries

Entry Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"committxid":"debbbb6b902de330bfaa78c6c9107eb0a451e10cd4523e150a8e8e6d5a042886",
6
"entryhash":"1a6c96162e81d429de92b2f18a0ba9b428e505de0077a5d16ad5707f0f8a73b2",
7
"commitdata":{
8
"status":"DBlockConfirmed"
9
},
10
"entrydata":{
11
"status":"DBlockConfirmed"
12
}
13
}
14
}
Copied!
Requesting an entry requires you to specify if the hash you provide is a commit or an entry hash. The chainid field is used to specify this. If you are searching for a commit, put c as the chainid field, otherwise, put the chainid that the entry belongs too.
For commit/reveal acks, the response has 2 sections, one for the commit, one for the reveal. If you provide the entryhash and chainid, both will be filled (if found). If you only provide the commit txid and c as the chainid, then only the commitdata is guaranteed to come back with data. The committxid and entryhash fields correspond to the commitdataand entrydata objects.
Why c? It is short for:000000000000000000000000000000000000000000000000000000000000000c
which is the chainid for all entry credit blocks. All commits are placed in the entry credit block (assuming they are valid and are properly paid for).

Factoid Transactions

Factoid Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"txid":"f1d9919829fa71ce18caf1bd8659cce8a06c0026d3f3fffc61054ebb25ebeaa0",
6
"transactiondate":1441138021975,
7
"transactiondatestring":"2015-09-01 15:07:01",
8
"blockdate":1441137600000,
9
"blockdatestring":"2015-09-01 15:00:00",
10
"status":"DBlockConfirmed"
11
}
12
}
Copied!
The hash field for a factoid transaction is equivalent to txid. To indicate the hash is a factoid transaction, put f in the chainid field and the txid in the hash field.
The response will look different than entry related ack calls.
Why f? It is short for:
000000000000000000000000000000000000000000000000000000000000000f
which is the chainid for all factoid blocks. All factoid transactions are placed in the factoid (assuming they are valid).

admin-block

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"admin-block", "params": {"keymr":"cc03cb3558b6b1acd24c5439fadee6523dd2811af82affb60f056df3374b39ae"}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"ablock":{
6
"header":{
7
"prevbackrefhash":"452201ee821c28ff601cd70a20c492d3f2a84a543c492b97b631d8f5e575c712",
8
"dbheight":100,
9
"headerexpansionsize":0,
10
"headerexpansionarea":"",
11
"messagecount":2,
12
"bodysize":131,
13
"adminchainid":"000000000000000000000000000000000000000000000000000000000000000a",
14
"chainid":"000000000000000000000000000000000000000000000000000000000000000a"
15
},
16
"abentries":[
17
{
18
"identityadminchainid":"0000000000000000000000000000000000000000000000000000000000000000",
19
"prevdbsig":{
20
"pub":"0426a802617848d4d16d87830fc521f4d136bb2d0c352850919c2679f189613a",
21
"sig":"50ed8fb2440b1d1e2036f617f64224a347c797898d7433e1934db47b1e057f250af772404c9d595a1f86d44d5034f4985ecdddc01c23e5945efe1fc866ea8505"
22
}
23
},
24
{
25
"minutenumber":1
26
}
27
],
28
"backreferencehash":"7cbd0f9b59e3ebe5f34836c6d7d0d42b9cafafb8cb348d71cb7c66b6de782d7a",
29
"lookuphash":"cc03cb3558b6b1acd24c5439fadee6523dd2811af82affb60f056df3374b39ae"
30
},
31
"rawdata":"000000000000000000000000000000000000000000000000000000000000000a452201ee821c28ff601cd70a20c492d3f2a84a543c492b97b631d8f5e575c712000000640000000002000000830100000000000000000000000000000000000000000000000000000000000000000426a802617848d4d16d87830fc521f4d136bb2d0c352850919c2679f189613a50ed8fb2440b1d1e2036f617f64224a347c797898d7433e1934db47b1e057f250af772404c9d595a1f86d44d5034f4985ecdddc01c23e5945efe1fc866ea85050001"
32
}
33
}
Copied!
Retrieve a specified admin block given its merkle root key.

chain-head

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"chain-head", "params":{"chainid":"5a77d1e9612d350b3734f6282259b7ff0a3f87d62cfef5f35e91a5604c0490a3"}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"chainhead": "f65f67774139fa78344dcdd302631a0d646db0c2be4d58e3e48b2a188c1b856c",
6
"chaininprocesslist":false
7
}
8
}
Copied!
Return the keymr of the head of the chain for a chain ID (the unique hash created when the chain was created).

commit-chain

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method": "commit-chain", "params":
2
{"message":
3
"00015507b2f70bd0165d9fa19a28cfaafb6bc82f538955a98c7b7e60d79fbf92655c1bff1c76466cb3bc3f3cc68d8b2c111f4f24c88d9c031b4124395c940e5e2c5ea496e8aaa2f5c956749fc3eba4acc60fd485fb100e601070a44fcce54ff358d606698547340b3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da2946c901273e616bdbb166c535b26d0d446bc69b22c887c534297c7d01b2ac120237086112b5ef34fc6474e5e941d60aa054b465d4d770d7f850169170ef39150b"}}' \
4
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"message":"Chain Commit Success",
6
"txid":"76e123d133a841fe3e08c5e3f3d392f8431f2d7668890c03f003f541efa8fc61",
7
"entryhash": "f5c956749fc3eba4acc60fd485fb100e601070a44fcce54ff358d60669854734",
8
"chainid": " f9164cd66af9d5773b4523a510b5eefb9a5e626480feeb6671ef2d17510ca300"
9
}
10
}
Copied!
Send a Chain Commit Message to factomd to create a new Chain. The commit chain hex encoded string is documented here.
The commit-chain API takes a specifically formated message encoded in hex that includes signatures. If you have a factom-walletd instance running, you can construct this commit-chain API call with compose-chain which takes easier to construct arguments.
The compose-chain api call has two api calls in it’s response: commit-chain and reveal-chain. To successfully create a chain, the reveal-chain must be called after the commit-chain.
It is possible to be unable to send a commit, if the commit already exists (if you try to send it twice). This is a mechanism to prevent you from double spending. If you encounter this error, just skip to the reveal-chain. The error format can be found here: repeated-commit

commit-entry

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method": "commit-entry", "params":
2
{"message":"00015507C1024BF5C956749FC3EBA4ACC60FD485FB100E601070A44FCCE54FF358D60669854734013B6A27BCCEB6A42D62A3A8D02A6F0D73653215771DE243A63AC048A18B59DA29F4CBD953E6EBE684D693FDCA270CE231783E8ECC62D630F983CD59E559C6253F84D1F54C8E8D8665D493F7B4A4C1864751E3CDEC885A64C2144E0938BF648A00"}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"message": "Entry Commit Success",
6
"txid": "bf12150038699f678ac2314e9fa2d4786dc8984d9b8c67dab8cd7c2f2e83372c",
7
"entryhash": "f5c956749fc3eba4acc60fd485fb100e601070a44fcce54ff358d60669854734"
8
}
9
}
Copied!
Send an Entry Commit Message to factom to create a new Entry. The entry commit hex encoded string is documented here.
The commit-entry API takes a specifically formated message encoded in hex that includes signatures. If you have a factom-walletd instance running, you can construct this commit-entry API call with compose-entry which takes easier to construct arguments.
The compose-entry api call has two api calls in it’s response: commit-entry and reveal-entry. To successfully create an entry, the reveal-entry must be called after the commit-entry.
It is possible to be unable to send a commit, if the commit already exists (if you try to send it twice). This is a mechanism to prevent you from double spending. If you encounter this error, just skip to the reveal-entry. The error format can be found here: repeated-commit

current-minute

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method": "current-minute"}' \
2
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"leaderheight": 4418,
6
"directoryblockheight": 4418,
7
"minute": 1,
8
"currentblockstarttime": 1535639576826240687,
9
"currentminutestarttime": 1535639590186099105,
10
"currenttime": 1535639593259007218,
11
"directoryblockinseconds": 100,
12
"stalldetected": false,
13
"faulttimeout": 120,
14
"roundtimeout": 30
15
}
16
}
Copied!
The current-minute API call returns:
  • leaderheight returns the current block height.
  • directoryblockheight returns the last saved height.
  • minute returns the current minute number for the open entry block.
  • currentblockstarttime returns the start time for the current block.
  • currentminutestarttime returns the start time for the current minute.
  • currenttime returns the current nodes understanding of current time.
  • directoryblockinseconds returns the number of seconds per block.
  • stalldetected returns if factomd thinks it has stalled.
  • faulttimeout returns the number of seconds before leader node is faulted for failing to provide a necessary message.
  • roundtimeout returns the number of seconds between rounds of an election during a fault.

dblock-by-height

Retrieves a directory block given only its height.
Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"dblock-by-height", "params":{"height":14460}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"dblock": {
6
"header": {
7
"version": 0,
8
"networkid": 4203931043,
9
"bodymr": "7716df6083612597d4ef18a8076c40676cd8e0df8110825c07942ca5d30073b4",
10
"prevkeymr": "fa7e6e2d37b012d71111bc4e649f1cb9d6f0321964717d35636e4637699d8da2",
11
"prevfullhash": "469c7fdce467d222363d55ac234901d8acc61fd4045ae26dd54dac17c556ef86",
12
"timestamp": 24671414,
13
"dbheight": 14460,
14
"blockcount": 3,
15
"chainid": "000000000000000000000000000000000000000000000000000000000000000d"
16
},
17
"dbentries": [
18
{
19
"chainid": "000000000000000000000000000000000000000000000000000000000000000a",
20
"keymr": "574e7d6178e04c92879601f0cb84a619f984eb2617ff9e76ee830a9f614cc9a0"
21
},
22
{
23
"chainid": "000000000000000000000000000000000000000000000000000000000000000c",
24
"keymr": "2a10f1678b9736f213ef3ac76e4f8aa910e5fed66733aa30dafdc91245157b3b"
25
},
26
{
27
"chainid": "000000000000000000000000000000000000000000000000000000000000000f",
28
"keymr": "cbadd7e280377ad8360a4b309df9d14f56552582c05100145ca3367e50adc497"
29
}
30
],
31
"dbhash": "aa7d881d23aad83425c3f10996999d31c76b51b14946f7aca204c150e81bc6d6",
32
"keymr": "18509c431ee852edbe1029d676217a0d9cb4fcc11ef8e9aef27fd6075167120c"
33
},
34
"rawdata": "00fa92e5a37716df6083612597d4ef18a8076c40676cd8e0df8110825c07942ca5d30073b4fa7e6e2d37b012d71111bc4e649f1cb9d6f0321964717d35636e4637699d8da2469c7fdce467d222363d55ac234901d8acc61fd4045ae26dd54dac17c556ef86017874b60000387c00000003000000000000000000000000000000000000000000000000000000000000000a574e7d6178e04c92879601f0cb84a619f984eb2617ff9e76ee830a9f614cc9a0000000000000000000000000000000000000000000000000000000000000000c2a10f1678b9736f213ef3ac76e4f8aa910e5fed66733aa30dafdc91245157b3b000000000000000000000000000000000000000000000000000000000000000fcbadd7e280377ad8360a4b309df9d14f56552582c05100145ca3367e50adc497"
35
}
36
}
Copied!

directory-block

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"directory-block", "params": {"keymr":"7ed5d5b240973676c4a8a71c08c0cedb9e0ea335eaef22995911bcdc0fe9b26b"}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"header":{
6
"prevblockkeymr":"7d15d82e70201e960655ce3e7cf475c9da593dfb82c6dca6377349bd148bf001",
7
"sequencenumber":72497,
8
"timestamp":1484858820
9
},
10
"entryblocklist":[
11
{
12
"chainid":"000000000000000000000000000000000000000000000000000000000000000a",
13
"keymr":"3faa880a97ef6ce1feca643cffa015dd6be6a597b3f9260e408c5ac9351d1f8d"
14
},
15
{
16
"chainid":"000000000000000000000000000000000000000000000000000000000000000c",
17
"keymr":"5f8c98930a1874a46b47b65b9376a02fbff65b760f6866519799d69e2bc019ee"
18
},
19
{
20
"chainid":"000000000000000000000000000000000000000000000000000000000000000f",
21
"keymr":"8c6fed0f41317cc45201b5b170a9ac5bc045029e39a90b6061211be2c0678718"
22
}
23
]
24
}
25
}
Copied!
Every directory block has a KeyMR (Key Merkle Root), which can be used to retrieve it. The response will contain information that can be used to navigate through all transactions (entry and factoid) within that block. The header of the directory block will contain information regarding the previous directory block’s keyMR, directory block height, and the timestamp.

directory-block-head

Example Request
1
curl -X POST --data-binary \
2
'{"jsonrpc": "2.0", "id": 0, "method": "directory-block-head"}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"keymr":"7ed5d5b240973676c4a8a71c08c0cedb9e0ea335eaef22995911bcdc0fe9b26b"
6
}
7
}
Copied!
The directory block head is the last known directory block by factom, or in other words, the most recently recorded block. This can be used to grab the latest block and the information required to traverse the entire blockchain.

ecblock-by-height

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"ecblock-by-height", "params": {"height":10000}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"ecblock":{
6
"header":{
7
"bodyhash":"4d1693377deddda4f23c8c2523a5c47a78b607312845e319a4131c82c6a44819",
8
"prevheaderhash":"d7dede56d2e7d46d879827fc6e4a3aca1be2816c9dca640686ec5f63cbb1fd9f",
9
"prevfullhash":"2bc12a0c7d5dd282fe62dd220d575f6834f188b587091f4ab50815bca1dcfd99",
10
"dbheight":10000,
11
"headerexpansionarea":"",
12
"objectcount":13,
13
"bodysize":296,
14
"chainid":"000000000000000000000000000000000000000000000000000000000000000c",
15
"ecchainid":"000000000000000000000000000000000000000000000000000000000000000c"
16
},
17
"body":{
18
"entries":[
19
{
20
"serverindexnumber":0
21
},
22
{
23
"version":0,
24
"millitime":"0150f0bb0c15",
25
"entryhash":"b87f8623b15a4574527699f594c1d77986dc140dbd4f4b277f35331a1f22f92e",
26
"credits":1,
27
"ecpubkey":"4bcbc1c5ab90e432bd407a51eaa513b4050eecda1fd42bbf6b7050a1d96f94b7",
28
"sig":"99c8d4b12e6dfc2ad5b1ee0da12dd25becd43808ded49dfa12f5667ba6ad07e8e44478912a219dfccd02f1110531f8b43a21d09c4af455b5c4ac398cb5926902"
29
},
30
{
31
"number":1
32
},
33
{
34
"number":2
35
},
36
{
37
"number":3
38
},
39
{
40
"number":4
41
},
42
{
43
"version":0,
44
"millitime":"0150f0bf8808",
45
"entryhash":"5759b2609abf0d224250db124559ff51fcd739b29dbb3b32a619c5cc74a0318a",
46
"credits":1,
47
"ecpubkey":"3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29",
48
"sig":"848506d790ce31287a3b97933631290f0e75cadf8be1cdf67a7e362bcdf15fc1fd50988ae001c683ac133f23c9a9af60521688870e96d78038e27d683960810a"
49
},
50
{
51
"number":5
52
},
53
{
54
"number":6
55
},
56
{
57
"number":7
58
},
59
{
60
"number":8
61
},
62
{
63
"number":9
64
},
65
{
66
"number":10
67
}
68
]
69
}
70
},
71
"rawdata":"000000000000000000000000000000000000000000000000000000000000000c4d1693377deddda4f23c8c2523a5c47a78b607312845e319a4131c82c6a44819d7dede56d2e7d46d879827fc6e4a3aca1be2816c9dca640686ec5f63cbb1fd9f2bc12a0c7d5dd282fe62dd220d575f6834f188b587091f4ab50815bca1dcfd990000271000000000000000000d0000000000000128000003000150f0bb0c15b87f8623b15a4574527699f594c1d77986dc140dbd4f4b277f35331a1f22f92e014bcbc1c5ab90e432bd407a51eaa513b4050eecda1fd42bbf6b7050a1d96f94b799c8d4b12e6dfc2ad5b1ee0da12dd25becd43808ded49dfa12f5667ba6ad07e8e44478912a219dfccd02f1110531f8b43a21d09c4af455b5c4ac398cb5926902010101020103010403000150f0bf88085759b2609abf0d224250db124559ff51fcd739b29dbb3b32a619c5cc74a0318a013b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29848506d790ce31287a3b97933631290f0e75cadf8be1cdf67a7e362bcdf15fc1fd50988ae001c683ac133f23c9a9af60521688870e96d78038e27d683960810a01050106010701080109010a"
72
}
73
}
Copied!
Retrieve the entry credit block for any given height. These blocks contain entry credit transaction information.

entry

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":"entry","params":
2
{"hash":"24674e6bc3094eb773297de955ee095a05830e431da13a37382dcdc89d73c7d7"}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"chainid":"df3ade9eec4b08d5379cc64270c30ea7315d8a8a1a69efe2b98a60ecdd69e604",
6
"content":"...",
7
"extids":[
8
"466163746f6d416e63686f72436861696e"
9
]
10
}
11
}
Copied!
Get an Entry from factomd specified by the Entry Hash.

entry-ack

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0,
2
"method":"entry-ack", "params":{"txid":
3
"9228b4b080b3cf94cceea866b74c48319f2093f56bd5a63465288e9a71437ee8"}}' \
4
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"committxid":"e5b5be39a41df43a3c46beaa238dc5e6f7bb11115a8da1a9b45cd694e257935a",
6
"entryhash":"9228b4b080b3cf94cceea866b74c48319f2093f56bd5a63465288e9a71437ee8",
7
"commitdata":{
8
"transactiondate":1449547801861,
9
"transactiondatestring":"2015-12-07 22:10:01",
10
"blockdate":1449547800000,
11
"blockdatestring":"2015-12-07 22:10:00",
12
"status":"DBlockConfirmed"
13
},
14
"entrydata":{
15
"blockdate":1449547800000,
16
"blockdatestring":"2015-12-07 22:10:00",
17
"status":"DBlockConfirmed"
18
}
19
}
20
}
Copied!
Deprecated: Please refer to ack
Entry Acknowledgements will give the current status of a transaction. “DBlockConfirmed” is the highest level of confirmation you can obtain. This means the entry has made it into Factom.

entry-block

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":"entry-block",
2
"params":{"keymr":"041c3fed14469a3d0f1a022e3d5321583065e691edb9223605c86766ff881883"}}'\
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"header":{
6
"blocksequencenumber":4211,
7
"chainid":"0caff62ea5b5aa015c706add7b2463a5be07e1f0537617f553558090f23c7f56",
8
"prevkeymr":"f7588bc41f03220a5ba4128432dc58b2027c05f432c91d79e6213ecdd5c923b3",
9
"timestamp":1450147800,
10
"dbheight":15000
11
},
12
"entrylist":[
13
{
14
"entryhash":"0ae2ab2cf543eed52a13a5a405bded712444cc8f8b6724a00602e1c8550a4ec2",
15
"timestamp":1450147980
16
}
17
]
18
}
19
}
Copied!
Retrieve a specified entry block given its merkle root key. The entry block contains 0 to many entries

entry-credit-balance

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"entry-credit-balance", "params":
3
{"address":"EC2DKSYyRcNWf7RS963VFYgMExoHRYLHVeCfQ9PGPmNzwrcmgm2r"}}' \
4
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"balance": 2000
6
}
7
}
Copied!
Return its current balance for a specific entry credit address.

entrycredit-block

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"entrycredit-block", "params": {"keymr":"2050b16701f29238d6b99bcf3fb0ca55d6d884139601f06691fc370cda659d60"}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"ecblock":{
6
"header":{
7
"bodyhash":"5eb9fea36690f9279360019d141faabef23b733030c2c6972f7870f38c22c385",
8
"prevheaderhash":"cd62ba005d20e9384e28a29da742b6fc3d6b12a2458dbb5d9be3e9daf743036c",
9
"prevfullhash":"848b20a3c499d9ade0fcc879e0febcc9fd107c6b6411627c262e44ce19499872",
10
"dbheight":1998,
11
"headerexpansionarea":"",
12
"objectcount":14,
13
"bodysize":433,
14
"chainid":"000000000000000000000000000000000000000000000000000000000000000c",
15
"ecchainid":"000000000000000000000000000000000000000000000000000000000000000c"
16
},
17
"body":{
18
"entries":[
19
{
20
"serverindexnumber":0
21
},
22
{
23
"number":1
24
},
25
{
26
"version":0,
27
"millitime":"014fd1eafcba",
28
"entryhash":"5710aeb50e7ad82b3ad469e91019bc86b360796cfd4c037168ffe9040b7dfec7",
29
"credits":1,
30
"ecpubkey":"17ef7a21d1a616d65e6b73f3c6a7ad5c49340a6c2592872020ec60767ff00d7d",
31
"sig":"7cd6b1df3d3f9cf519a2437e799ee8acd815a2aeec7d5743295ff476632b070cb4459300a2bef1055e6fbb0c7ff5c62a9695f41be246c566051dd172816d7b06"
32
},
33
{
34
"version":0,
35
"millitime":"014fd1eafcbc",
36
"entryhash":"ae8088e67f5bc7023f1b9dd84022c41067e8777e6436f73fc2384511ae637122",
37
"credits":1,
38
"ecpubkey":"17ef7a21d1a616d65e6b73f3c6a7ad5c49340a6c2592872020ec60767ff00d7d",
39
"sig":"5b126ac909fff2f0553e6b02d559478e95be3af80926b710e1fa086b177fb5ae2b065737d58375924653f70527695a3c1c84823acc6d83000347fbecf49eca0a"
40
},
41
{
42
"version":0,
43
"millitime":"014fd1eafcd7",
44
"entryhash":"5685ab402185def2ee2639be7a119d1fbf66114ce923c585bf20920c839ed1a7",
45
"credits":1,
46
"ecpubkey":"17ef7a21d1a616d65e6b73f3c6a7ad5c49340a6c2592872020ec60767ff00d7d",
47
"sig":"0213cf5675124b211d16cb3c0c35f3cf87fa83e6970d0e7eb1feadd49bbd774878edc18066afe75b32fe525be4720326f622df0fa13afc5ad6653e6a0cf0e607"
48
},
49
{
50
"number":2
51
},
52
{
53
"number":3
54
},
55
{
56
"number":4
57
},
58
{
59
"number":5
60
},
61
{
62
"number":6
63
},
64
{
65
"number":7
66
},
67
{
68
"number":8
69
},
70
{
71
"number":9
72
},
73
{
74
"number":10
75
}
76
]
77
}
78
},
79
"rawdata":"000000000000000000000000000000000000000000000000000000000000000c5eb9fea36690f9279360019d141faabef23b733030c2c6972f7870f38c22c385cd62ba005d20e9384e28a29da742b6fc3d6b12a2458dbb5d9be3e9daf743036c848b20a3c499d9ade0fcc879e0febcc9fd107c6b6411627c262e44ce19499872000007ce00000000000000000e00000000000001b1000001010300014fd1eafcba5710aeb50e7ad82b3ad469e91019bc86b360796cfd4c037168ffe9040b7dfec70117ef7a21d1a616d65e6b73f3c6a7ad5c49340a6c2592872020ec60767ff00d7d7cd6b1df3d3f9cf519a2437e799ee8acd815a2aeec7d5743295ff476632b070cb4459300a2bef1055e6fbb0c7ff5c62a9695f41be246c566051dd172816d7b060300014fd1eafcbcae8088e67f5bc7023f1b9dd84022c41067e8777e6436f73fc2384511ae6371220117ef7a21d1a616d65e6b73f3c6a7ad5c49340a6c2592872020ec60767ff00d7d5b126ac909fff2f0553e6b02d559478e95be3af80926b710e1fa086b177fb5ae2b065737d58375924653f70527695a3c1c84823acc6d83000347fbecf49eca0a0300014fd1eafcd75685ab402185def2ee2639be7a119d1fbf66114ce923c585bf20920c839ed1a70117ef7a21d1a616d65e6b73f3c6a7ad5c49340a6c2592872020ec60767ff00d7d0213cf5675124b211d16cb3c0c35f3cf87fa83e6970d0e7eb1feadd49bbd774878edc18066afe75b32fe525be4720326f622df0fa13afc5ad6653e6a0cf0e60701020103010401050106010701080109010a"
80
}
81
}
Copied!
Retrieve a specified entrycredit block given its merkle root key. The numbers are minute markers.

entry-credit-rate

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0,
2
"method": "entry-credit-rate"}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"rate": 95369
6
}
7
}
Copied!
Returns the number of Factoshis (Factoids *10^-8) that purchase a single Entry Credit. The minimum factoid fees are also determined by this rate, along with how complex the factoid transaction is.

factoid-ack

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0,
2
"method":"factoid-ack", "params":{
3
"txid":"f1d9919829fa71ce18caf1bd8659cce8a06c0026d3f3fffc61054ebb25ebeaa0"}}' \
4
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"txid":"f1d9919829fa71ce18caf1bd8659cce8a06c0026d3f3fffc61054ebb25ebeaa0",
6
"transactiondate":1441138021975,
7
"transactiondatestring":"2015-09-01 15:07:01",
8
"blockdate":1441137600000,
9
"blockdatestring":"2015-09-01 15:00:00",
10
"status":"DBlockConfirmed"
11
}
12
}
Copied!
Deprecated: Please refer to ack
Factoid Acknowledgements will give the current status of a transaction. “DBlockConfirmed” is the highest level of confirmation you can obtain. This means the transaction has completed.

factoid-balance

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"factoid-balance", "params":{"address":"FA2jK2HcLnRdS94dEcU27rF3meoJfpUcZPSinpb7AwQvPRY6RL1Q"}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"balance": 966582271
6
}
7
}
Copied!
This call returns the number of Factoshis (Factoids *10^-8) that are currently available at the address specified.

factoid-block

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"factoid-block", "params": {"keymr":"1df843ee64f4b139047617a2df1007ea4470fabd097ddf87acabc39813f71480"}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"fblock":{
6
"bodymr":"1118c35047d58381f363c69a2501cfab34b5dca2f1c2806530c22af8bf7b3f59",
7
"prevkeymr":"694e5ea2cd1feb49ff6ecb5b77739f4885352143b389db7c7559a91b5df7eb20",
8
"prevledgerkeymr":"581914c0e606a95e0df75596a75de62d828f5e215a6380a62db90025f0516d6d",
9
"exchrate":120000,
10
"dbheight":41915,
11
"transactions":[
12
{
13
"txid":"a1dfd97c32df3f060a56436a661e2e997e2954198294c351380c1029c9029f4b",
14
"blockheight":0,
15
"millitimestamp":1466346000464,
16
"inputs":[
17
18
],
19
"outputs":[
20
21
],
22
"outecs":[
23
24
],
25
"rcds":[
26
27
],
28
"sigblocks":[
29
30
]
31
},
32
{
33
"txid":"6e0c010d3977e59734f4cc5f520092af7916420a2b03fb37c80d7d364261d164",
34
"blockheight":0,
35
"millitimestamp":1466346049257,
36
"inputs":[
37
{
38
"amount":6990000000,
39
"address":"c825bc4e3309b97d8e0f1af0f0f0a71930a151488af886fad792e775928a7d5a",
40
"useraddress":"FA3VE46DUpZEgC1vRsZiWEcbjNMB6jbfQQ1nS66PSE7Jt5ADAQ8Z"
41
},
42
{
43
"amount":1560000,
44
"address":"330fd717584445ac866dc2facd8b856e63bdb8b15b5ed46c0b053b2c6c5c5c3f",
45
"useraddress":"FA2MZs5wASMo9cCiKezdiQKCd8KA6Zbg2xKXKGmYEZBqon9J3ZKv"
46
}
47
],
48
"outputs":[
49
{
50
"amount":6990000000,
51
"address":"330fd717584445ac866dc2facd8b856e63bdb8b15b5ed46c0b053b2c6c5c5c3f",
52
"useraddress":"FA2MZs5wASMo9cCiKezdiQKCd8KA6Zbg2xKXKGmYEZBqon9J3ZKv"
53
}
54
],
55
"outecs":[
56
57
],
58
"rcds":[
59
"0143a73f3b72b34c281f51b23e3861fb08dde5195f37ed2dd6e1dcf4df6924cdc7",
60
"012c94f2bbe49899679c54482eba49bf1d024476845e478f9cce3238f612edd761"
61
],
62
"sigblocks":[
63
{
64
"signatures":[
65
"3a58153da5a9a8cb000689983e2532168b22a1c29c197379a263d9e4c844c6ffb2cd2d79d9a33782e66b66cccd749b9b20fd81215d891ff7c601d625a96dcd0c"
66
]
67
},
68
{
69
"signatures":[
70
"b3a9554231d940c288cabbbf056067c64c7478dc0264da1451ceeb1c1a28ab63a7ac71a2a08075f742fdfe0f80012ca3614af92c2c5f757d3aac762a0dfb2d08"
71
]
72
}
73
]
74
},
75
{
76
"txid":"6d966064383b0da8df1e8db6ec319c01fcf0a119439936bc6ed86afe4769a252",
77
"blockheight":0,
78
"millitimestamp":1466346444191,
79
"inputs":[
80
{
81
"amount":46535848,
82
"address":"1b81ea64ac318395390caf9acb3efbece402b03cd20aa7540f1172f2e235b656",
83
"useraddress":"FA2BCCVgPD7ZGFpYpzbWXbqtmJroL6wQFcJgPSME6coUqh9EUng9"
84
}
85
],
86
"outputs":[
87
{
88
"amount":45095848,
89
"address":"dcb8222e77488961e3a5516de51a5831708f10ddb62b1464d1d87fc10354d01e",
90
"useraddress":"FA3eHXyQ7ibbX75pbhcAJqkaWhLYqfNptG1ifxjogDgADLgKXrcX"
91
}
92
],
93
"outecs":[
94
95
],
96
"rcds":[
97
"0112cb1fc2b1d5e8a82f6727a02731ced20e09ba04eaf5762ab1b8f6b0c280fbe1"
98
],
99
"sigblocks":[
100
{
101
"signatures":[
102
"c0ef56d70389388d70464478750cde51deabb6b1d19a4e3766937163d337e0c6ba1c9d71c7d4e6ef37efd66512463fc61ed5b93eced32d1d2c9b2bec0c232b0b"
103
]
104
}
105
]
106
}
107
],
108
"chainid":"000000000000000000000000000000000000000000000000000000000000000f",
109
"keymr":"1df843ee64f4b139047617a2df1007ea4470fabd097ddf87acabc39813f71480",
110
"ledgerkeymr":"f6b05c36fe0a7c91f3d96f41fab2987250398350499f8369a1905357a1bb31e9"
111
},
112
"rawdata":"000000000000000000000000000000000000000000000000000000000000000f1118c35047d58381f363c69a2501cfab34b5dca2f1c2806530c22af8bf7b3f59694e5ea2cd1feb49ff6ecb5b77739f4885352143b389db7c7559a91b5df7eb20581914c0e606a95e0df75596a75de62d828f5e215a6380a62db90025f0516d6d000000000001d4c00000a3bb000000000300000200020155690850500000000002015569090ee90201009a858bdf00c825bc4e3309b97d8e0f1af0f0f0a71930a151488af886fad792e775928a7d5adf9b40330fd717584445ac866dc2facd8b856e63bdb8b15b5ed46c0b053b2c6c5c5c3f9a858bdf00330fd717584445ac866dc2facd8b856e63bdb8b15b5ed46c0b053b2c6c5c5c3f0143a73f3b72b34c281f51b23e3861fb08dde5195f37ed2dd6e1dcf4df6924cdc73a58153da5a9a8cb000689983e2532168b22a1c29c197379a263d9e4c844c6ffb2cd2d79d9a33782e66b66cccd749b9b20fd81215d891ff7c601d625a96dcd0c012c94f2bbe49899679c54482eba49bf1d024476845e478f9cce3238f612edd761b3a9554231d940c288cabbbf056067c64c7478dc0264da1451ceeb1c1a28ab63a7ac71a2a08075f742fdfe0f80012ca3614af92c2c5f757d3aac762a0dfb2d08000000000000020155690f159f0101009698a9281b81ea64ac318395390caf9acb3efbece402b03cd20aa7540f1172f2e235b65695c0b728dcb8222e77488961e3a5516de51a5831708f10ddb62b1464d1d87fc10354d01e0112cb1fc2b1d5e8a82f6727a02731ced20e09ba04eaf5762ab1b8f6b0c280fbe1c0ef56d70389388d70464478750cde51deabb6b1d19a4e3766937163d337e0c6ba1c9d71c7d4e6ef37efd66512463fc61ed5b93eced32d1d2c9b2bec0c232b0b000000"
113
}
114
}
Copied!
Retrieve a specified factoid block given its merkle root key.

factoid-submit

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method": "factoid-submit", "params":
2
{"transaction":"0201565d109233010100b0a0e100646f3e8750c550e4582eca5047546ffef89c13a175985e320232bacac81cc428afd7c200ce7b98bfdae90f942bc1fe88c3dd44d8f4c81f4eeb88a5602da05abc82ffdb5301718b5edd2914acc2e4677f336c1a32736e5e9bde13663e6413894f57ec272e28dc1908f98b79df30005a99df3c5caf362722e56eb0e394d20d61d34ff66c079afad1d09eee21dcd4ddaafbb65aacea4d5c1afcd086377d77172f15b3aa32250a"}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"message":"Successfully submitted the transaction",
6
"txid":"aa8bac391e744340140ea0d95c7b37f9cc8a58601961bd751f5adb042af6f33b"
7
}
8
}
Copied!
Submit a factoid transaction. The transaction hex encoded string is documented here.
The factoid-submit API takes a specifically formatted message encoded in hex that includes signatures. If you have a factom-walletd instance running, you can construct this factoid-submit API call with compose-transaction which takes easier to construct arguments.

fblock-by-height

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"fblock-by-height", "params": {"height":1}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"fblock":{
6
"bodymr":"16a82932aa64e6ad45b2749f2abb871fcf3353ab9d4e163c9bd90e5bbd745b59",
7
"prevkeymr":"a164ccbb77a21904edc4f2bb753aa60635fb2b60279c06ae01aa211f37541736",
8
"prevledgerkeymr":"2fb170f73c3961d4218ff806dd75e6e348ca1798a5fc7a99d443fbe2ff939d99",
9
"exchrate":666600,
10
"dbheight":1,
11
"transactions":[
12
{
13
"txid":"e321605afa458333cdded91644b0d9a21b4325bb3340b85a943974bf70aa1e99",
14
"blockheight":0,
15
"millitimestamp":1441137675547,
16
"inputs":[
17
18
],
19
"outputs":[
20
21
],
22
"outecs":[
23
24
],
25
"rcds":[
26
27
],
28
"sigblocks":[
29
30
]
31
},
32
{
33
"txid":"f1d9919829fa71ce18caf1bd8659cce8a06c0026d3f3fffc61054ebb25ebeaa0",
34
"blockheight":0,
35
"millitimestamp":1441138021975,
36
"inputs":[
37
{
38
"amount":207999200,
39
"address":"7d4f56c528ab09da5bbf7b37b0b453f43db303730e28e9ebe02657dff431d4f7",
40
"useraddress":"FA2vGRwutdPdTHQa7kkpX3LkSgqKQ1MS2nur4UqbxqP5MGHcziWa"
41
}
42
],
43
"outputs":[
44
45
],
46
"outecs":[
47
{
48
"amount":200000000,
49
"address":"17ef7a21d1a616d65e6b73f3c6a7ad5c49340a6c2592872020ec60767ff00d7d",
50
"useraddress":"EC1whAxbYYsfQoAFLuzHCsz4Qz29WePBcrrGj5MqMQ1PR43wjiBH"
51
}
52
],
53
"rcds":[
54
"01a5be79b6ada79c0af4d6b7f91234ff321f3b647ed01e02ccbbc0fe9dcc632934"
55
],
56
"sigblocks":[
57
{
58
"signatures":[
59
"82f22455b9756ee4b4db411a5d00e31b689c1bd1abe1d1e887cf4c52e67fc51fe4d9594c24643a91009c6ea91701b5b6df240248c2f39453162b61d71b982701"
60
]
61
}
62
]
63
}
64
],
65
"chainid":"000000000000000000000000000000000000000000000000000000000000000f",
66
"keymr":"aa100f203f159e4369081bb366f6816b302387ec19a4f8b9c98495d97fbe3527",
67
"ledgerkeymr":"5810ed83155dfb7b6039323b8a5572cd03166a37d1c3e86d4538c99907a81757"
68
},
69
"rawdata":"000000000000000000000000000000000000000000000000000000000000000f16a82932aa64e6ad45b2749f2abb871fcf3353ab9d4e163c9bd90e5bbd745b59a164ccbb77a21904edc4f2bb753aa60635fb2b60279c06ae01aa211f375417362fb170f73c3961d4218ff806dd75e6e348ca1798a5fc7a99d443fbe2ff939d9900000000000a2be8000000010000000002000000c702014f8a7fcd1b00000002014f8a851657010001e397a1607d4f56c528ab09da5bbf7b37b0b453f43db303730e28e9ebe02657dff431d4f7dfaf840017ef7a21d1a616d65e6b73f3c6a7ad5c49340a6c2592872020ec60767ff00d7d01a5be79b6ada79c0af4d6b7f91234ff321f3b647ed01e02ccbbc0fe9dcc63293482f22455b9756ee4b4db411a5d00e31b689c1bd1abe1d1e887cf4c52e67fc51fe4d9594c24643a91009c6ea91701b5b6df240248c2f39453162b61d71b98270100000000000000000000"
70
}
71
}
Copied!
Retrieve the factoid block for any given height. These blocks contain factoid transaction information.

heights

Example Request
1
curl -X POST --data-binary \
2
'{"jsonrpc": "2.0", "id": 0, "method": "heights"}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"directoryblockheight":72498,
6
"leaderheight":72498,
7
"entryblockheight":72498,
8
"entryheight":72498
9
}
10
}
Copied!
Returns various heights that allows you to view the state of the blockchain. The heights returned provide a lot of information regarding the state of factomd, but not all are needed by most applications. The heights also indicate the most recent block, which could not be complete, and still being built. The heights mean as follows:
  • directoryblockheight : The current directory block height of the local factomd node.
  • leaderheight : The current block being worked on by the leaders in the network. This block is not yet complete, but all transactions submitted will go into this block (depending on network conditions, the transaction may be delayed into the next block)
  • entryblockheight : The height at which the factomd node has all the entry blocks. Directory blocks are obtained first, entry blocks could be lagging behind the directory block when syncing.
  • entryheight : The height at which the local factomd node has all the entries. If you added entries at a block height above this, they will not be able to be retrieved by the local factomd until it syncs further.
A fully synced node should show the same number for all, (except between minute 0 and 1, when leaderheight will be 1 block ahead.)

multiple-ec-balances

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":"multiple-ec-balances",
2
"params":{"addresses":["EC293AbTn3VScgC2m86xTh2kFKAMNnkgoLdXgywpPa66Jacom5ya","EC3ExcVhmGRJmavCf1LCMu8YiHCyU2CWVh5DmXRz6jfPHMbzJSCz"]}}'
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"currentheight": 1674,
6
"lastsavedheight": 1673,
7
"balances": [
8
{
9
"ack": 5,
10
"saved": 5,
11
"err": ""
12
},
13
{
14
"ack": 14,
15
"saved": 14,
16
"err": ""
17
}
18
]
19
}
20
}
Copied!
The multiple-ec-balances API is used to query the acknowledged and saved balances for a list of entry credit addresses.
  • currentheight is the current height that factomd was loading.
  • lastsavedheight is the height last saved to the database.
  • In balances it returns "ack", "saved" and "err".
    • ack is the balance after processing any in-flight transactions known to the Factom node responding to the API call
    • saved is the last saved to the database
    • err is just used to display any error that might have happened during the request. If it is "" that means there was no error.
  • If the syntax of the parameters is off e.g. missing a quote, a comma, or a square bracket, it will return: {“jsonrpc”:“2.0”,“id”:null,“error”:{“code”:-32600,“message”:“Invalid Request”}}
  • If the parameters are labeled incorrectly the call will return: “{“code”:-32602,“message”:“Invalid params”,“data”:“ERROR! Invalid params passed in, expected 'addresses’”}”
  • If factomd is not loaded up all the way to the last saved block it will return: {“currentheight”:0,“lastsavedheight”:0,“balances”:[{“ack”:0,“saved”:0,“err”:“Not fully booted”}]}
  • If the list of addresses contains an incorrectly formatted address the call will return: {“currentheight”:0,“lastsavedheight”:0,“balances”:[{“ack”:0,“saved”:0,“err”:“Error decoding address”}]}
  • If an address in the list is valid but has never been part of a transaction the call will return: “balances”:[{“ack”:0,“saved”:0,“err”:“Address has not had a transaction”}]“
Referring to the example request: This Example is for simulation, these addresses may not work or have the same value for mainnet or testnet.

multiple-fct-balances

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":"multiple-fct-balances",
2
"params":{"addresses":["FA3uMAv9htC5y5u3ayzxNQKZNDpgrJVf49kJSKdVNxcYoNBbSLXc","FA3umgJaXdHjpSQyBUPC2uMFuoW9nM5Ymm8Sa2f2VKGSqsyx79nf"]}}'
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"currentheight": 1678,
6
"lastsavedheight": 1677,
7
"balances": [
8
{
9
"ack": 69896000,
10
"saved": 69896000,
11
"err": ""
12
},
13
{
14
"ack": 245272000,
15
"saved": 245272000,
16
"err": ""
17
}
18
]
19
}
20
}
Copied!
The multiple-fct-balances API is used to query the acknowledged and saved balances in factoshis (a factoshi is 10^8 factoids) not factoids(FCT) for a list of FCT addresses.
  • currentheight is the current height that factomd was loading.
  • lastsavedheight is the height last saved to the database.
  • In balances it returns "ack", "saved" and "err".
    • ack is the balance after processing any in-flight transactions known to the Factom node responding to the API call
    • saved is the last saved to the database
    • err is just used to display any error that might have happened during the request. If it is "" that means there was no error.
  • If the syntax of the parameters is off e.g. missing a quote, a comma, or a square bracket, it will return: {"jsonrpc”:“2.0”,“id”:null,“error”:{“code”:-32600,“message”:“Invalid Request”}}
  • If the parameters are labeled incorrectly the call will return: {“code”:-32602,“message”:“Invalid params”,“data”:“ERROR! Invalid params passed in, expected 'addresses’”}
  • If factomd is not loaded up all the way to the last saved block it will return: {“currentheight”:0,“lastsavedheight”:0,“balances”:[{“ack”:0,“saved”:0,“err”:“Not fully booted”}]}
  • If the list of addresses contains an incorrectly formatted address the call will return: {“currentheight”:0,“lastsavedheight”:0,“balances”:[{“ack”:0,“saved”:0,“err”:“Error decoding address”}]}
  • If an address in the list is valid but has never been part of a transaction it will return: “balances”:[{“ack”:0,“saved”:0,“err”:“Address has not had a transaction”}]
Referring to the example request: This Example is for simulation, these addresses may not work or have the same value for mainnet or testnet.

pending-entries

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"pending-entries", "params": {}}' -H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":[
5
{
6
"entryhash":"dde3f69025780f58da583b6961cf17291004f733fb2fa1a69738e0a7768387e4",
7
"chainid":"5c7a44a37870ca729d03820339379955781a863bc461545a9df06bbc15110bdb",
8
"status":"TransactionACK"
9
},
10
{
11
"entryhash":"45da41a07c6157839a735147a555ba4b009b72a9a7fe126c0d418413743f1683",
12
"chainid":"f6df2b40bf16be03deddc169a6429804a67a761ed5f2d5499f7e56a7202f854b",
13
"status":"TransactionACK"
14
}
15
]
16
}
Copied!
Returns an array of the entries that have been submitted but have not been recorded into the blockchain.

pending-transactions

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method": "pending-transactions", "params":
2
{"address":"FA2jK2HcLnRdS94dEcU27rF3meoJfpUcZPSinpb7AwQvPRY6RL1Q"}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":[
5
{
6
"transactionid": "337a32712f14c5df0b57a64bd6c321a043081688ecd4f33fd8319470da2256b1",
7
"status": "TransactionACK",
8
"inputs":[
9
{
10
"amount":100012000,
11
"address":"646f3e8750c550e4582eca5047546ffef89c13a175985e320232bacac81cc428",
12
"useraddress":"FA2jK2HcLnRdS94dEcU27rF3meoJfpUcZPSinpb7AwQvPRY6RL1Q"
13
}
14
],
15
"outputs":[
16
{
17
"amount":100000000,
18
"address":"27c0a471c6c9b6da3fce0af7b1119ac2cbc68723657a9e2860d83c6776bbd6ff",
19
"useraddress":"FA2GaytuGnYuphP3uz3V9HuN9ECLAHRy73Hu7xhbydatJFx414j9"
20
}
21
],
22
"ecoutputs":[],
23
"fees":12000
24
}
25
]
26
}
Copied!
Returns an array of factoid transactions that have not yet been recorded in the blockchain, but are known to the system.

properties

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"properties"}' -H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc": "2.0",
3
"id": 0,
4
"result": {
5
"factomdversion": "0.4.0.0",
6
"factomdapiversion": "2.0"
7
}
8
}
Copied!
Retrieve current properties of the Factom system, including the software and the API versions.

raw-data

Example Request
1
curl -X POST --data-binary '{"jsonrpc": "2.0", "id": 0, "method":
2
"raw-data", "params":{"hash":"0ae2ab2cf543eed52a13a5a405bded712444cc8f8b6724a00602e1c8550a4ec2"}}' \
3
-H 'content-type:text/plain;' http://localhost:8088/v2
Copied!
Example Response
1
{
2
"jsonrpc":"2.0",
3
"id":0,
4
"result":{
5
"data":"00f9164cd66af9d5773b4523a510b5eefb9a5e626480feeb6671ef2d17510ca30000900040e5a5fa49cf19015475fb1b5c8e4269b4586f04ec98e0bb60dd32c214e201c9cf97febe09afca45549db35a9f61ca930855ce6d753853fb270490bcafb65e43020015466163746f6d20496e63204261736520436861696e0014466163746f6d697a652045766572797468696e67000c42656c6c2041766572616765001142656c6c204176657261676520446174617b22736f75726365223a227777772e62656c6c617665726167652e636f6d222c2271756f74655f64617465223a22323031372d30312d31392031373a33333a3031222c2264617461223a5b7b22474f4c44223a22313231332e3134227d2c7b2253494c564552223a2231372e3139227d5d7d"
6
}
7
}
Copied!
Retrieve an entry or transaction in raw format, the data is a hex encoded string.

receipt