The subgraph provides information on purchases at Rarible, including commission amounts.
Contracts support status in the current version:
- TokenSale
- ERC721SaleV1
- ERC721SaleV2
- ERC1155SaleV1
- ERC1155SaleV2
- ExchangeV1
The graphql schema is still under heavy development and will likely have major changes and improvements.
Please follow the official documentation.
Deal - represents the Buy
event
- type - deal initiation method (
Order
orBid
) - seller - seller's address
- buyer - buyer's address
- sellTokenId - token to sell id
- sellToken - token to sell address
- buyToken - token to buy address
- sellAmount - amount of
sellToken
- buyAmount - amount of
buyToken
- price - price in a
buyToken
currency - fee - fee in a
buyToken
currency - txHash - transaction hash
- blockNumber - number of the block
- blockTime - timestamp of the block
- contract -
ContractType
Block - represents the ethereum block
- blockNumber - number of the block
- blockTime - timestamp of the block
Counter - counter for each ContractType
- count - number of events under the specified
contract
- firstBlock -
Block
of the first event - lastBlock -
Block
of the last event - contract -
ContractType
DealType - enumerates deal initiation methods
- Order
- Bid
ContractType - enumeration for contracts
- TokenSale
- ERC721SaleV1
- ERC721SaleV2
- ERC1155SaleV1
- ERC1155SaleV2
- ExchangeV1
HTTP queries can be accessed at: https://api.thegraph.com/subgraphs/name/rarible/protocol.
List of deals
{
deals (first: 10) {
seller
buyer
sellTokenId
sellToken
buyToken
sellAmount
buyAmount
price
fee
txHash
blockNumber
blockTime
contract
}
}
The number of entities can be limited with
first
flag
List of deals specified by a contract
{
deals (where: { contract: ExchangeV1 }) {
seller
buyer
sellTokenId
sellToken
buyToken
sellAmount
buyAmount
price
fee
txHash
blockNumber
blockTime
contract
}
}
see
ContractType
enumeration for possiblecontract
values
List of counters for contracts
{
counters {
count
firstBlock {
blockNumber
blockTime
}
lastBlock {
blockNumber
blockTime
}
contract
}
}
You are welcome to suggest features and report bugs found!
Protocol subgraph is available under MIT License.