Moxie Overview
Welcome to the Moxie Developer Hub! 👋
Start building on Moxie by exploring all the use cases enabled in the tutorials below:
📄️ Fan Token Auctions
Fetch fan token auctions data from the Moxie protocol's subgraphs and third-party APIs
📄️ Fan Tokens
Fetch fan tokens balances, holdings, buy/sell orders on the bonding curves, and more from Moxie subgraphs.
📄️ Bids
Fetch all bids on a certain auction from the Moxie subgraphs
📄️ Users
Fetch user's bids, buy/sell orders, fan token portfolio, etc. from the Moxie subgraphs
📄️ Orders
Fetch all buy/sell orders on the bonding curves from the Moxie subgraphs
📄️ Protocol
Fetch buy/sell orders, protocol fee transfers, and more from the Moxie subgraphs
📄️ Vesting
Fetch all data from the vesting contract using the Moxie subgraphs
In addition, you can also explore further in detail all the available subgraphs, contracts, and third-party APIs that you can use to build on top of the Moxie protocol.
Subgraphs
There are a number of subgraphs that you can use to index on-chain data from the Moxie protocol. Each subgraphs are designed to provide you with a different set of data points that you can use to support various use cases.
The list of subgraphs that are available are:
📄️ Protocol Subgraph
Fetch fan tokens balances, holdings, buy/sell orders on the bonding curves, and more.
📄️ Auction Subgraph
Fetch fan token auctions data from the Moxie protocol's auction contract.
📄️ Vesting Subgraph
Fetch vesting data from the Moxie protocol's vesting contract.
Each subgraph is accessible via the Subgraph Studio for free but will be rate-limited. If you need higher throughput for your use case, you can use the associated network subgraph on the Graph network.
You can check out the full source code of the collection of subgraphs in the Moxie Subgraph GitHub repository.
Contracts
The Moxie protocol is composed of a series of smart contracts deployed on the Base mainnet that define the protocol mechanism and functionality as laid out in the whitepaper.
The contract has been audited by Code4rena and you can find the audit report here.
To learn more about the contracts, you can check out the Moxie contract references:
📄️ Contract References
Learn all the solidity functions and events that are available in the Moxie protocol contracts.
You can also check out the full source code of the Moxie protocol contracts in the Moxie Contracts GitHub repository.
Third-Party APIs
Airstack provides GraphQL API for querying certain Moxie Protocol data.
You can access the Airstack GraphQL API with this endpoint https://api.airstack.xyz/graphql.
For this, you'll be required to get an Airstack API key.
For access to the Airstack API key, you'll need to hold at least 1 /airstack Channel Fan Token in either your Farcaster custodial wallet or one of your Farcaster verified wallets AND make sure that you have connected one of those wallet or your Farcaster account to your Airstack account.
If you don't have it yet, you can buy it here.
To learn more about it, click here.