Quantum
  • Welcome to Quantum
  • Developer portal
    • Pricing
  • Self-Custody Infrastructure
    • Pincode Management
    • Private Key Management
  • Quickstart guide
  • Authentication
    • API Authentication
  • Faucets
  • Networks & URLs
  • Walletify Api
    • Overview
    • Getting started
    • User Management
    • Signing Methods
    • Testnet Assets
    • Basic Guides
      • Create a user
      • Retrieve a user
      • Update a user
      • Delete a user
      • Create a signing method
      • Update a signing method
      • Delete a signing method
      • Create a wallet
      • Retrieve wallet
      • Archive a wallet
      • Import a wallet
      • Export a wallet
      • Retrieve native balance
      • Retrieve ERC20 tokens
      • Retrieve NFTs
      • Transfer a native token
      • Transfer an ERC20 token
      • Transfer an NFT
      • Transfer a fungible token
      • Signatures
      • Read a contract
      • Execute a contract call
      • Get Transaction status
      • Resubmit a transaction
      • Get wallet events
      • Webhooks
    • Advanced Guides
      • Burn an NFT
      • Filter Spam NFTs
      • Filter NSFW NFTs
      • SWAP Token Pairs
      • Gasless/Meta Transactions
      • Sign RAW Transactions
      • Using Fiat Onramp with Walletify-API
      • Deploy an Ethereum contract
      • Integrate with WalletConnect
      • Set Up NFT Token Gating
      • Chain Specific Fields
      • Integrate with WalletConnect
      • Encrypted PIN Transfer
  • Nft Wizard Api
    • Overview
    • Getting started
    • Basic Guides
      • Get any NFT info
      • Get any NFT contract
      • Get NFTs by any wallet
      • Get wallets by any NFT
      • Create contract
      • Retrieve Contract
      • Delete Contract
      • Check Contract Status
      • Retrieve Contract Metadata
      • Update Contract Metadata
      • Create Token-type (NFT template)
      • Retrieve Token-type (NFT template)
      • Delete Token-type (NFT Template)
      • Check Token-type Status
      • Retrieve Token-type Metadata
      • Update Token-type Metadata
      • Mint an NFT
      • Batch Mint NFTs
      • Update NFT Metadata
      • Retrieve NFT Metadata
      • Add Audio to your NFTs
      • Add Video to your NFTs
      • Store NFT Media
      • Webhooks
    • Advanced Guides
      • Mass Minting
      • Speed Up Minting
      • Dynamic NFTs
      • Configure Royalties
      • Create Company Minter Wallet
      • Retrieve Company Minter Wallets
      • Store NFT Metadata on IPFS
      • View NFT on sandbox/testnet
    • NFT Configuration
      • Attributes
      • Animation & Media
      • Collection Info
      • Max Supply
      • Mint Number
      • Burnable
      • Metadata Storage
  • TMINTER API
    • Overview
    • Getting started
    • Basic Guide
      • Retrieve Any NFT Information
      • Retrieve NFT Contract Information
      • Retrieve NFTs by Wallet Address
      • Retrieve Wallets by NFT
      • Create a New NFT Contract
      • Retrieve a Contract
      • Delete a Contract
      • Check Contract Status
      • Retrieve Contract Metadata
      • Update Contract Metadata
      • Create Token-Type
      • Retrieve Token-Type
      • Delete Token-Type
      • Check Token-Type Status
      • Retrieve Token-Type Metadata
      • Update Token-Type Metadata
      • Mint a Single NFT
      • Batch Mint Multiple NFTs
      • Update NFT Metadata
      • Retrieve NFT Metadata
      • Add Audio to Your NFTs
      • Add Video to Your NFTs
      • Store NFT Media
      • Webhooks for NFT Events
    • Advance Guide
      • Dynamic NFT Creation
      • Token Economics and Supply Control
      • Advanced Minting: Royalty Distribution
      • Cross-Chain NFT Minting
      • NFT Sharding (Fractional Ownership)
      • Batch NFT Minting with Custom Metadata
      • Add Interactivity to NFTs
      • Advanced Media Integration: VR and AR
      • Webhook Triggers for Automated Processes
Powered by GitBook
On this page
  1. TMINTER API

Getting started

PreviousOverviewNextBasic Guide

Last updated 9 months ago

This guide will help you start with our API to manage your testnet assets, create users, generate wallets, and perform your first crypto transactions. Whether you’re a developer exploring blockchain integration or testing crypto functionalities, this guide will walk you through essential API endpoints, ensuring a smooth experience with TMINTER's platform.

We’ll cover the following key steps:

  • Authenticating your API requests

  • Accessing testnet assets

  • Creating a user and their signing method

  • Generating wallets

  • Transferring funds between wallets

  • Checking transaction status

Prerequisites

First, create a Quantum business account, if you do not have one, you can register in our or read the guide on how to with Quantum.

You are required to have your Client ID and Client Secret available, you can get this from the as seen below;

You can use tools like Postman or the API Reference documentation to execute these API calls.

1. Authenticating Your API Requests

Access the TMINTER API, requires one to log in with the Client ID and the Client Secret. Such credentials are needed to establish a bearer token that will then validate all of your subsequent API transactions.

Once authenticated, all API requests will use the base URL: https://sandbox.api-tminter.io

For further details on where to obtain your bearer token, check out our Authentication page.

2. Accessing Your Testnet Assets

After signing up for a trial subscription to TMINTER, a Testnet wallet is automatically generated for you, preloaded with the following test assets:

  • 1 TMINTER Testnet Token (Token type ERC20).

  • 100 Quantum Test Tokens

  • 1 Dummy NFT

These assets are associated with your first test user, enabling you to familiarise yourself with TMINTER’s features at once.

💡 Note: The test wallet comes with a default PIN which is 123456

2.1 Retrieve Your User ID and Signing Method

The first action is to get your ‘user ID’ as well as the ‘signingMethodId’. One user of TMINTER can have several wallets at the same time. In this case, the other testnet wallet which is generated automatically is connected to the first user (Test User #1).

To retrieve the user details, use the following API call:

Endpoint: GET /api/users?includeSigningMethods=true

In the response, you will get information about userid and signingmethodid. These should be kept for later use in API requests to be made in the subsequent section.

2.2 Retrieve Wallet ID and Wallet Address

After that, you’re going to need the wallet details associated with the user you have On top of it, you should get the wallet information belonging to the user. This wallet will include the said initial one token of TMINTER.

Endpoint: GET /api/wallets?userId={userId}

The response to this request will include the wallet and wallet address as well as the balance available (1 TMINTER token). You will require these details for the next processes to be followed.

2.3 Checking Your ERC20 Token Balance

Now that you have your wallet, let's check the balance of your testnet tokens: Now that you have your wallet, let's check the balance of your testnet tokens:

Endpoint: GET /api/wallets/{walletId}/balance/tokens

This call will bring the amount of Quantum Test Tokens available in your wallet (100 ERC20).

2.4 Retrieving NFTs

Other than tokens, your wallet will also be loaded with a test NFT. To retrieve it:

Endpoint: GET /api/wallets/{walletId}/nonfungibles

The responses will show the NFT stored in your wallet such as its metadata and corresponding image URLs.

3. Creating a New User

Now, it is time to create a new user in TMINTER. Each new user is a potential of one of your end-users or an entity that would require its own wallet.

Endpoint: POST /api/users

Request Body:

json

Copy code

{

"reference": "Second Test User"

}

Dial this number and in return, you will be given the user ID for this new user.

4. Setting Up a Signing Method

Following a user creation, they require a signing method. It is possible to use a PIN-based signing method for alerting wallet transactions to ensure that they are legitimate.

Endpoint: POST /api/users/{userId}/signing-methods

Request Body:

json

Copy code

{

"type": "PIN",

"pin": "654321"

}

This initiates a PIN signing mechanism for the user where the user will be using the wallet that is to be created.

5. Creating a Wallet

Now, let’s generate a new wallet for this user. A given user can have more than one wallet and these wallets can contain different kinds of cryptocurrencies.

Endpoint: POST /api/wallets

Request Body:

json

Copy code

{

"userId": "{secondUserId}",

"secretType": "TMINTER"

}

For this new wallet, you’ll receive the wallet and the address.

6. Transferring Funds Between Wallets

After getting another or a second wallet, you can transfer money between them. Let’s move some TMINTER tokens from one wallet to another:

Endpoint: POST /api/wallets/{senderWalletId}/transfers

Request Body:

json

Copy code

{

"recipientWalletAddress": "{recipientWalletAddress}",

"amount": "0.5",

"secretType": "TMINTER",

"signingMethodId": "{signingMethodId}"

}

For that, you will receive a transaction ID which shows the transfer has taken place.

7. Checking Transaction Status

To check the status of your transaction, use the following endpoint:

To check the status of your transaction, use the following endpoint:

Endpoint: GET /api/transactions/{transactionId}

It will show the response whether the transaction is still pending, failed, or successfully executed.

Developer Portal
Getting Started
Portal
Access Credentials - Developer Portal