Injective Chain - Legacy REST and gRPC Gateway docs
v1.0.0https://inj.nownodes.ioA REST interface for state queries, legacy transactions
Authentication
api-keyAuthapiKeyAPI Key: api-key in header
API Reference
Exchange
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringqueryResponse
A successful response.
An unexpected error response.
Retrieves mismatches between available vs. total balance
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
dust_factorstring<int64>requiredpathResponse
A successful response.
An unexpected error response.
Retrieves available and total balances with balance holds
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves a spot market's orderbook by marketID
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
statusstringqueryStatus of the market, for convenience it is set to string - not enum.
Response
A successful response.
An unexpected error response.
Retrieves a derivative market's corresponding address for fees that contribute to the market's insurance fund
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
Response
A successful response.
An unexpected error response.
Retrieves a list of derivative markets.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
statusstringqueryStatus of the market, for convenience it is set to string - not enum.
market_idsArray<string>queryFilter by market IDs.
with_mid_price_and_tobbooleanqueryFlag to return the markets mid price and top of the book buy and sell orders.
Response
A successful response.
An unexpected error response.
Retrieves a derivative market by ticker
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
Response
A successful response.
An unexpected error response.
Retrieves a derivative market's mid-price
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
Response
A successful response.
An unexpected error response.
Retrieves a derivative market's orderbook by marketID
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
limitstring<uint64>querylimit_cumulative_notionalstringqueryResponse
A successful response.
An unexpected error response.
Retrieves a trader's derivative conditional orders
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathsubaccount_idstringrequiredpathResponse
A successful response.
An unexpected error response.
Retrieves all account address derivative orders
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
account_addressstringrequiredpathAccount address of the trader
Response
A successful response.
An unexpected error response.
Retrieves a trader's derivative orders
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
subaccount_idstringrequiredpathSubaccountID of the trader
Response
A successful response.
An unexpected error response.
Retrieves a trader's derivative orders
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
subaccount_idstringrequiredpathSubaccountID of the trader
order_hashesArray<string>querythe order hashes.
Response
A successful response.
An unexpected error response.
Retrieves a trader's transient derivative orders
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
subaccount_idstringrequiredpathSubaccountID of the trader
Response
A successful response.
An unexpected error response.
Retrieves subaccount's position in market
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
subaccount_idstringrequiredpathmarket_idstringrequiredpathResponse
A successful response.
An unexpected error response.
Retrieves the aggregate volume for the specified market
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathResponse
A successful response.
An unexpected error response.
Retrieves the aggregate market volumes for specified markets
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idsArray<string>queryResponse
A successful response.
An unexpected error response.
Retrieves the aggregate volumes for the specified account or subaccount
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
accountstringrequiredpathcan either be an address or a subaccount
Response
A successful response.
An unexpected error response.
Retrieves the aggregate volumes for specified accounts
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
accountsArray<string>querymarket_idsArray<string>queryResponse
A successful response.
An unexpected error response.
Retrieves the denom decimals for a denom.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
denomstringrequiredpathResponse
A successful response.
An unexpected error response.
Retrieves the denom decimals for multiple denoms. Returns all denom decimals if unspecified.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
denomsArray<string>querydenoms can be empty to query all denom decimals.
Response
A successful response.
An unexpected error response.
Retrieves all of the balances of all users on the exchange.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves a Subaccount's Deposits
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
subaccount_idstringquerydenomstringqueryResponse
A successful response.
An unexpected error response.
Retrieves a Subaccount's Deposits
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
subaccount_idstringquerysubaccount.traderstringquerysubaccount.subaccount_nonceinteger<int64>queryResponse
A successful response.
An unexpected error response.
Retrieves a subaccount's trade nonce
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
subaccount_idstringrequiredpathResponse
A successful response.
An unexpected error response.
Retrieves exchange params
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves expiry market info
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathResponse
A successful response.
An unexpected error response.
Retrieves the account's fee discount info
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
accountstringrequiredpathResponse
A successful response.
An unexpected error response.
Retrieves the fee discount schedule
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves fee discount tier stats
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves historical trade records for a given market ID
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringqueryResponse
A successful response.
An unexpected error response.
Retrieves if the account is opted out of rewards
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
accountstringrequiredpathResponse
A successful response.
An unexpected error response.
MarketVolatility computes the volatility for spot and derivative markets trading history.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathtrade_history_options.trade_grouping_secstring<uint64>queryTradeGroupingSec of 0 means use the chain's default grouping.
trade_history_options.max_agestring<uint64>queryMaxAge restricts the trade records oldest age in seconds from the current block time to consider. A value of 0 means use all the records present on the chain.
trade_history_options.include_raw_historybooleanqueryIf IncludeRawHistory is true, the raw underlying data used for the computation is included in the response.
trade_history_options.include_metadatabooleanqueryIf IncludeMetadata is true, metadata on the computation is included in the response.
Response
A successful response.
An unexpected error response.
Retrieves market making pool info
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves the entire exchange module's state
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves all accounts opted out of rewards
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves subaccount's order metadata
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
subaccount_idstringrequiredpathResponse
A successful response.
An unexpected error response.
Retrieves subaccount's orders
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
subaccount_idstringrequiredpathmarket_idstringqueryResponse
A successful response.
An unexpected error response.
Retrieves the pending account and total trade rewards points
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
accountsArray<string>querypending_pool_timestampstring<int64>queryResponse
A successful response.
An unexpected error response.
Retrieves perpetual market funding
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathResponse
A successful response.
An unexpected error response.
Retrieves perpetual market info
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathResponse
A successful response.
An unexpected error response.
Retrieves the entire exchange module's positions
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves subaccount's positions
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
subaccount_idstringrequiredpathResponse
A successful response.
An unexpected error response.
Retrieves subaccount's position in market
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
subaccount_idstringrequiredpathmarket_idstringrequiredpathResponse
A successful response.
An unexpected error response.
Retrieves a spot market with extra information.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
with_mid_price_and_tobbooleanqueryFlag to return the markets mid price and top of the book buy and sell orders.
Response
A successful response.
An unexpected error response.
Retrieves a list of spot markets with extra information.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
statusstringqueryStatus of the market, for convenience it is set to string - not enum.
market_idsArray<string>queryFilter by market IDs.
with_mid_price_and_tobbooleanqueryFlag to return the markets mid price and top of the book buy and sell orders.
Response
A successful response.
An unexpected error response.
Retrieves a list of spot markets.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
statusstringqueryStatus of the market, for convenience it is set to string - not enum.
market_idsArray<string>queryFilter by market IDs.
Response
A successful response.
An unexpected error response.
Retrieves a spot market by ticker
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
Response
A successful response.
An unexpected error response.
Retrieves a spot market's mid-price
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
Response
A successful response.
An unexpected error response.
Retrieves a spot market's orderbook by marketID
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
limitstring<uint64>queryorder_sidestringSide_UnspecifiedBuySellSide_Unspecifiedquery- Side_Unspecified: will return both
limit_cumulative_notionalstringquerylimit_cumulative_quantitystringqueryResponse
A successful response.
An unexpected error response.
Retrieves all account address spot orders
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
account_addressstringrequiredpathAccount address of the trader
Response
A successful response.
An unexpected error response.
Retrieves a trader's spot orders
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
subaccount_idstringrequiredpathSubaccountID of the trader
Response
A successful response.
An unexpected error response.
Retrieves spot orders corresponding to specified order hashes for a given subaccountID and marketID
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
subaccount_idstringrequiredpathSubaccountID of the trader
order_hashesArray<string>querythe order hashes.
Response
A successful response.
An unexpected error response.
Retrieves a trader's transient spot orders
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
subaccount_idstringrequiredpathSubaccountID of the trader
Response
A successful response.
An unexpected error response.
Retrieves the trade reward campaign
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves the account and total trade rewards points
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
accountsArray<string>querypending_pool_timestampstring<int64>queryResponse
A successful response.
An unexpected error response.
QueryMarketIDFromVault returns the market ID for a given vault subaccount ID
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
vault_addressstringrequiredpathResponse
A successful response.
An unexpected error response.
Wasmx
Retrieves the entire wasmx module's state
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves wasmx params
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves contract registration info
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
contract_addressstringrequiredpathResponse
A successful response.
An unexpected error response.
Auction
Retrieves current auction basket with current highest bid and bidder
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves the entire auction module's state
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves auction params
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Oracle
Retrieves the state for all band ibc price feeds
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves the state for all band price feeds
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves the band relayers
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves the state for all coinbase price feeds
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves historical price records for a given OracleType and Symbol
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
oraclestringUnspecifiedBandPriceFeedCoinbaseChainlinkRazorDiaAPI3UmaPythBandIBCProviderUnspecifiedquerysymbol_idstringqueryResponse
A successful response.
An unexpected error response.
Retrieves the entire oracle module's state
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves oracle params
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
oracle_typestringUnspecifiedBandPriceFeedCoinbaseChainlinkRazorDiaAPI3UmaPythBandIBCProviderUnspecifiedquerybasestringqueryquotestringqueryResponse
A successful response.
An unexpected error response.
Retrieves the state for all price feeds
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves the state for all provider price feeds
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
providerstringrequiredpathsymbolstringrequiredpathResponse
A successful response.
An unexpected error response.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
providerstringqueryResponse
A successful response.
An unexpected error response.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
price_idstringqueryResponse
A successful response.
An unexpected error response.
Retrieves the state for all pyth price feeds
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves mixed volatility value for the specified pair of base/quote
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
base_info.symbolstringquerybase_info.oracle_typestringUnspecifiedBandPriceFeedCoinbaseChainlinkRazorDiaAPI3UmaPythBandIBCProviderUnspecifiedquerybase_info.scale_factorinteger<int64>queryquote_info.symbolstringqueryquote_info.oracle_typestringUnspecifiedBandPriceFeedCoinbaseChainlinkRazorDiaAPI3UmaPythBandIBCProviderUnspecifiedqueryquote_info.scale_factorinteger<int64>queryoracle_history_options.max_agestring<uint64>queryMaxAge restricts the oracle price records oldest age in seconds from the current block time to consider. A value of 0 means use all the records present on the chain.
oracle_history_options.include_raw_historybooleanqueryIf IncludeRawHistory is true, the raw underlying data used for the computation is included in the response.
oracle_history_options.include_metadatabooleanqueryIf IncludeMetadata is true, metadata on the computation is included in the response.
Response
A successful response.
An unexpected error response.
Insurance
Retrives the value of insurance fund share token at current price (not pending redemption)
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
marketIdstringqueryaddressstringqueryResponse
A successful response.
An unexpected error response.
Retrieves individual insurance fund information from market id
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
market_idstringrequiredpathMarket ID for the market
Response
A successful response.
An unexpected error response.
Retrieves all insurance funds
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves the entire insurance module's state
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves insurance params
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Retrieves pending redemptions' share token at current price
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
marketIdstringqueryaddressstringqueryResponse
A successful response.
An unexpected error response.
Tokenfactory
DenomsFromCreator defines a gRPC query method for fetching all denominations created by a specific admin/creator.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
creatorstringrequiredpathResponse
A successful response.
An unexpected error response.
Retrieves the entire auction module's state
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Params defines a gRPC query method that returns the tokenfactory module's parameters.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.