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

avatar

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



0
0
0.000
4 comments
avatar

Hi, @inertia!

You just got a 0.87% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

0
0
0.000