Current section
Files
Jump to
Current section
Files
lib/database_api.ex
defmodule Golos.DatabaseApi do
def call(method, params) do
Golos.call(["database_api", method, params])
end
def get_block(height) do
call("get_block", [height])
end
def get_content(author, permlink) do
call("get_content", [author, permlink])
end
def get_accounts(accounts) do
accounts = List.wrap(accounts)
call("get_accounts", [accounts])
end
def get_block_header(height) do
call("get_block_header", [height])
end
def get_dynamic_global_properties do
call("get_dynamic_global_properties", [])
end
def get_chain_properties do
call("get_chain_properties", [])
end
def get_feed_history do
call("get_feed_history", [])
end
def get_current_median_history_price do
call("get_current_median_history_price", [])
end
# ACCOUNTS
end