-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Indexer API] Self hosted indexer api #201
Comments
you can use hasura self-hosted solution(hasura docker image) and https://github.com/aptos-labs/aptos-indexer-processors/tree/main/hasura-api/metadata-json this file as the metadata to use. |
I'm trying to import the Something like this:
|
While import [
{
"definition": {
"name": "current_nft_marketplace_listings",
"schema": "nft_marketplace_v2"
},
"name": "table nft_marketplace_v2.current_nft_marketplace_listings in source indexer-v2",
"reason": "Inconsistent object: no such table/view exists in source: \"nft_marketplace_v2.current_nft_marketplace_listings\"",
"type": "table"
},
{
"definition": {
"name": "current_nft_marketplace_collection_offers",
"schema": "nft_marketplace_v2"
},
"name": "table nft_marketplace_v2.current_nft_marketplace_collection_offers in source indexer-v2",
"reason": "Inconsistent object: no such table/view exists in source: \"nft_marketplace_v2.current_nft_marketplace_collection_offers\"",
"type": "table"
},
{
"definition": {
"name": "current_nft_marketplace_auctions",
"schema": "nft_marketplace_v2"
},
"name": "table nft_marketplace_v2.current_nft_marketplace_auctions in source indexer-v2",
"reason": "Inconsistent object: no such table/view exists in source: \"nft_marketplace_v2.current_nft_marketplace_auctions\"",
"type": "table"
},
{
"definition": {
"name": "current_nft_marketplace_token_offers",
"schema": "nft_marketplace_v2"
},
"name": "table nft_marketplace_v2.current_nft_marketplace_token_offers in source indexer-v2",
"reason": "Inconsistent object: no such table/view exists in source: \"nft_marketplace_v2.current_nft_marketplace_token_offers\"",
"type": "table"
},
{
"definition": {
"name": "nft_marketplace_activities",
"schema": "nft_marketplace_v2"
},
"name": "table nft_marketplace_v2.nft_marketplace_activities in source indexer-v2",
"reason": "Inconsistent object: no such table/view exists in source: \"nft_marketplace_v2.nft_marketplace_activities\"",
"type": "table"
}
] |
I did manage to import the file by removing some parts of it |
@olivbau thanks for reporting this. Some of the tables are missing in the DB because they come from a different processor outside of the normal Rust stack. cc @yuunlimm we should consider publishing a copy of the metadata with the changes that @olivbau made. This would be helpful for the local testnet too since I actually manually edit the metadata in exactly the same way myself every single time I update the metadata that it uses. |
Description
Is there any updates on self hosted indexer api?
https://aptos.dev/indexer/api/self-hosted
I'm running processors which are saving data to Postgres DB, and I would like to open an endpoint to this.
It seems no guide on this is provided yet.
The text was updated successfully, but these errors were encountered: