Skip to content

Instantly share code, notes, and snippets.

const astraNFTContract = new ethers.Contract(
process.env.ASTRA_NFT_COLLECTIBLE_CONTRACT_ADDRESS,
[
'function mintNFTs(address to, string memory designId, string memory designName, string memory designImage, string memory prompt, uint256 count) external',
'function getBaseMintFee() external view returns (uint256)',
'function isDesignIdUsed(string memory designId) external view returns (bool)',
'function MAX_PER_MINT() external view returns (uint256)',
'function setBaseURI(string memory _baseTokenURI) external',
'function transferNFT(address to, uint256 tokenId) external',
'function getOwner(uint256 tokenId) external view returns (address)',
@gr4yha7
gr4yha7 / analytics.md
Created March 25, 2025 15:44
Movement Mainnet Analytics Data

Sign Up on Flipside

Create an account on Flipside Crypto.

Sample Code (Typescript)

import { Flipside } from "@flipsidecrypto/sdk";

const flipside = new Flipside(
  '<YOUR_FLIPSIDE_API_KEY>',
  "https://api-v2.flipsidecrypto.xyz"
@gr4yha7
gr4yha7 / queries.md
Last active March 24, 2025 19:47
Movement Testnet Indexer GraphQL API

How to Explore the GraphQL Schema

  1. Visit the Movement Testnet Indexer GraphQL Playground.
  2. Use Ctrl + Space for auto-complete suggestions.
  3. Check the Explorer (left sidebar) for available tables and fields.

1. Fetch Latest Block Data via coin_activities

query BlockData($limit: Int = 100) {