Proposal #39 - DevPortal Documentation Update - Pull Requests and SMT Documentation Stubs


This week, I have two new pull request for Steemit, Inc. to merge:

  • PR#430 - Small change to page header so that the canonical_url points to the original article.
  • PR#431 - Link back to API Pagination Recipe from API Definitions
  • In Progress - SMT API Definitions

SMT API Definitions e30d88a

I've stubbed the initial documentation for the SMT API Definitions. Right now, it only includes the structure of the queries and broadcast operation, although I'm adding any useful comments I find in the source as I go. Here are the methods we now have on the testnet. I'm highlighting them here with the testnet node, but they're also going into the commit for production (note, I'm piping to jq, which you can get with apt-get install jq):

database_api.find_smt_contributions

curl -s --data '{
"jsonrpc": "2.0",
"method": "database_api.find_smt_contributions",
"params": {"symbol_contributors": []},
"id": 1
}' https://testnet.steemitdev.com | jq

image.png

database_api.find_smt_token_emissions

curl -s --data '{
"jsonrpc": "2.0",
"method": "database_api.find_smt_token_emissions",
"params": {"asset_symbol":{"nai":"@@000000000","decimals":0}},
"id": 1
}' https://testnet.steemitdev.com | jq

image.png

database_api.find_smt_tokens

curl -s --data '{
"jsonrpc": "2.0",
"method": "database_api.find_smt_tokens",
"params": {"symbols":[],"ignore_precision":false},
"id":1
}' https://testnet.steemitdev.com | jq

image.png

database_api. get_nai_pool

curl -s --data '{
"jsonrpc": "2.0",
"method": "database_api.get_nai_pool",
"params": {},
"id":1
}' https://testnet.steemitdev.com | jq

image.png

database_api.list_smt_contributions

curl -s --data '{
"jsonrpc": "2.0",
"method": "database_api.list_smt_contributions",
"params": {"start":[],"limit":10,"order":"by_symbol_contributor"},
"id":1
}' https://testnet.steemitdev.com | jq

image.png

database_api.list_smt_token_emissions

curl -s --data '{
"jsonrpc": "2.0",
"method": "database_api.list_smt_token_emissions",
"params": {"start":[],"limit":10,"order":"by_symbol_time"},
"id":1
}' https://testnet.steemitdev.com | jq

image.png

database_api.list_smt_tokens

curl -s --data '{
"jsonrpc": "2.0",
"method": "database_api.list_smt_tokens",
"params":{"start":{},"limit":10,"order":"by_symbol"},
"id":1
}' https://testnet.steemitdev.com | jq

image.png


Comments 4


You have received a @buildawhale manual curation vote.

11.10.2019 19:36
1

Nice work @inertia!

11.10.2019 20:21
0

Such important work you do! 😘

14.10.2019 14:44
0