Matmo
  • Ⓜ️Matmo
  • πŸš€Mainnet
  • πŸͺ™Token
  • πŸ›‘οΈAudit
  • 🎁Presale
    • πŸ’°Wallet and Buy
    • πŸ“ˆToken price
    • πŸ’ΈBonuses and Discounts
    • πŸ‘«Referral program
    • πŸ€VCS & Angel Investors
  • 🎦Marketing
  • πŸ”’Economics
  • πŸ“»RoadMap
  • πŸ“šDOCS
    • πŸ•ΈοΈWeb3
    • πŸ“’Concepts
    • ↗️Account
    • βš’οΈBlocks
    • πŸ”€Transactions
    • ♨️Gas and Transaction Fees
    • βš–οΈStaking
    • πŸ‘ΊNFT
    • 🏦Swap
    • πŸ•Governance
    • πŸŒ‰Bridging assets
    • πŸ•ŽRun a Validator
      • πŸ“³Run a Fullnode
    • ⛓️API
    • πŸ“€SDK
    • πŸ‘ΎValidator
  • πŸ«‚Team
  • πŸ‘«Community
    • Twitter
    • Telegram Channel
    • Telegram group I
    • Telegram group II
    • Telegram group III
    • Medium
Powered by GitBook
On this page
  • Installing the TypeScript SDK
  • Using the TypeScript SDK
  1. DOCS

SDK

PreviousAPINextValidator

Last updated 10 months ago

In Matmo's SDK content, it is recommended to use the TypeScript SDK.

Matmo provides a fully supported TypeScript SDK with source code in the #matmos-core repository.

Installing the TypeScript SDK

  • TypeScript SDK

  • Python SDK

  • Rust SDK

npm i matmo-typescript 
yarn add matmo-python
pnpm add matmo-rust

Using the TypeScript SDK

import { Provider, Network } from "matmo";

const provider = new Provider(Net.DEVNET) const account = await provider.getAccount("0x64");

const accountNFTs = await provider.

getAccountNFTs("0x64");

The main read methods deserializing on-chain data to TS objects are:

Get CollectionData

Get TokenData

Code:
[
  {
    "decimals": 18,
    "tokenAddress": "0x6c221e79624690fff6d8741493d735a1f716c689",
    "tokendata": "0xx6e7676837a7e968f7616f255b9adxqf47363d68",
    "name": "DAI",
    "symbol": "DAI"
  },
  {
    "decimals": 18,
    "accountAddress": "0x0000000000000000000000000000000000000000",
    "accountdate": "0x0000000000000000000000000000000000000000",
    "name": "Ether",
    "symbol": "ETH"
  },
  {
    "decimals": 6,
    "collectionAddress": "0xd35cceead182dcee0f148ebac9447da2c4d449c4",
    "collectiondate": "0x0faf6df7054946141266420b43783387a78d82a9",
    "name": "USD Coin (goerli)",
    "symbol": "USDC"
  }
]

Most of the functionality of the TypeScript SDK can be found in the Rust and Python SDKs.

Get Token of an

πŸ“š
πŸ“€
GitHub
​
​
​
Account