REST + GraphQL
Mintbase only uses our GraphQL system for our Minter, Market, Redeemer, and Auction, as it has a much more robust with very deep relational architecture, but if you prefer REST here are some basic bits.
NEAR Network Origin
URI
Mainnet
https://mintbase-mainnet.hasura.app
Testnet
https://mintbase-testnet.hasura.app
Remember to understand our Data Model before diving in too deep (Store => Thing => Token)

Example

1
await fetch(`[API_ORIGIN]/api/rest/stores`, {
2
method: `GET`,
3
});
Copied!

Stores

get
/api/rest/stores
Fetch All Stores
get
/api/rest/stores/{id}
Fetch Store by Id

Example

https://mintbase-mainnet.hasura.app/api/rest/stores/wilde.mintbase1.near
mintbase-mainnet.hasura.app

Things

get
/api/rest/things
Fetch All Things
get
/api/rest/things/{id}
Fetch Thing

Tokens (NFTs)

get
/api/rest/tokens
Fetch All Tokens
id = {unique token id} + ":" + {full contract name}
387:bonepolice.mintbase1.near
get
/api/rest/tokens/{id}
Fetch Token
https://mintbase-mainnet.hasura.app/api/rest/tokens/387:bonepolice.mintbase1.near
mintbase-mainnet.hasura.app

Market

get
/api/rest/lists
Fetch All Lists
get
/api/rest/lists/{id}
Fetch List
get
/api/rest/approvals
Fetch All Approvals
get
/api/rest/dappradar/top-stores
Get Top Store
get
/api/rest/marketplace
Fetch Marketplace
get
/api/rest/token-approvals
Fetch Token Approval on Contract
get
/api/rest/categories
Fetch All Categories

Accounts

get
/api/rest/accounts/{account}
Fetch Account
get
/api/rest/accounts/{account}
Fetch Account

Overall

get
/api/rest/stats
Stats
Last modified 9d ago