LYNC
DashboardSupport
  • 👋Introducing LYNC
  • Products
    • LYNC Account Abstraction SDK
    • LYNC Account Abstraction WebGL SDK
    • Metamask Wallet
    • LYNC Metamask PC SDK
    • OKX Wallet
    • LYNC In-Game Marketplace SDK
    • NFT Fetcher
    • No-Code Smart Contract Deployer
    • EVM Lootbox SDK
      • Getting Started
      • Using the SDK
        • Creating a new lootbox
        • Opening a lootbox
        • Claiming rewards
        • Whitelisting users using lootbox
        • Lootbox admin functions
        • Useful information functions from LyncLootBox class
        • Multicall : opening and claiming multiple lootboxes in a single transaction
      • Example Codes in React & TypeScript
        • Example code for creating a new lootbox
        • Example code for opening a lootbox
        • Example code for claiming a lootbox
    • Launch your products on Telegram
      • Configure Your Telegram Bot
      • Deploying Your Product on TG
  • APTOS
    • LYNC Paymaster - Supporting Aptos
      • How to Register on LYNC Dashboard
      • How to Create Paymaster
      • How to Fund the Paymaster
      • Module & Function Whitelist
      • How to Integrate Paymaster
        • Unity
        • API
        • JavaScript/ TypeScript
    • LYNC Unity Aptos SDK
    • Keyless Accounts
      • Configure Your OIDC Provider
      • Integrate Keyless in Unity
    • Wallet Creation and Transaction APIs
      • Pre-requisites
      • Integration
        • API Overview
        • Create a new wallet
        • Get already created wallet
        • Mint NFT transactions
        • Send generic transactions on Aptos
    • LYNC Social Login SDK on Aptos
      • Getting Started
      • Using the SDK
      • Example Codes in React & TypeScript
      • Types Used in the Methods Provided by the SDK
      • Other Specification
    • LYNC Aptos Lootbox
      • Getting Started
      • Creating a Lootbox
      • Opening a Lootbox
      • Claiming the Rewards
      • Conclusion
  • Movement Labs
    • 📇Indexer
      • How to run index custom data?
      • Example Queries
        • Get Token Info
        • Get Token Balances
        • Get NFTs Owned by an Account
    • NFT Deployer
    • LYNC Social Login SDK on Movement
      • Getting Started
      • Using the SDK
      • Example Codes in React & TypeScript
      • Types and Enums Used in the Methods Provided by the SDK
      • Other Specification
    • LYNC Unity Movement SDK
    • Wallet Creation and Transaction APIs
      • Pre-requisites
      • Integration
        • API Overview
        • Create a new wallet
        • Get already created wallet
        • Mint NFT transactions
    • LYNC Paymaster - Supporting Movement
      • How to Register on LYNC Dashboard
      • How to Create Paymaster
      • How to Fund the Paymaster
      • Module & Function Whitelist
      • How to Integrate Paymaster
        • JavaScript/ TypeScript
  • Supra
    • LYNC Paymaster - Supporting Supra L1
      • How to Register on LYNC Dashboard
      • How to Create Paymaster
      • How to Fund the Paymaster
      • Module & Function Whitelist
      • How to Integrate Paymaster
        • JavaScript/ TypeScript
    • LYNC Unity SUPRA SDK
    • Wallet Creation and Transaction APIs
      • Pre-requisites
      • Integration
        • API Overview
        • Create a new wallet
        • Get already created wallet
        • Mint NFT transactions
  • Fuel
    • LYNC Unity Fuel SDK
    • LYNC NFT Deployer
      • Introduction
      • Getting Started
      • Deploying Your NFTs
        • Launch Your Entire Collection
      • Troubleshooting and FAQs
    • LYNC Fuel Lootbox
      • Getting Started
      • Creating a Lootbox
      • Opening a Lootbox
      • Claiming the Rewards
      • Conclusion
    • Wallet Creation and Transaction APIs
      • Pre-requisites
      • Integration
        • API Overview
        • Create a new wallet
        • Get already created wallet
    • Fuel Marketplace NPM SDK
      • Getting Started
      • Using the SDK
        • Using hooks to get the marketplace data
        • Using services provided by the SDK to list, buy, and manage tokens
        • Some useful functions provided by the SDK
        • Error codes for the SDK
        • Interfaces and Enums provided by the SDK
      • Support
  • Metis
    • Wallet Creation and Transaction APIs
      • Pre-requisites
      • Integration
        • API Overview
        • Create a new wallet
        • Get already created wallet
        • Mint NFT transactions
  • NPM Packages
    • Marketplace
      • Hook: useAllCollectionNFT
      • Hook: useAllBuyNFT
      • Hook: useAllOwnerNFT
      • Hook: useNFTDetails
      • Hook: useAllNFTForRent
Powered by GitBook
On this page
  • Get API Keys from LYNC Support
  • Create a new wallet
  • Get an existing wallet
  • Perform a transaction
  1. APTOS
  2. LYNC Paymaster - Supporting Aptos
  3. How to Integrate Paymaster

API

Base endpoint: https://server-aptos-sdk.lync.world/api

Get API Keys from LYNC Support

Create a new wallet

Endpoint: https://server-aptos-sdk.lync.world/api/generate_wallet/create_wallet

Method: POST

Headers:

{
    "Content-Type": "application/json",
    "Accept": "application/json",
    "x-api-key": "Get this from LYNC Support"
}

Request:

{
    "email":"team@lync.world",
    "network": 2,
    "apiKey": "Get this from lync support"
}

Parameters:

  • email : Your email address

  • network : Aptos network (1 for Mainnet & 2 for Testnet)

  • apiKey : Your api key. Get this from LYNC support

Response:

{
    "message": "Account Created On Chain Successfully.",
    "status": 201,
    "success": true,
    "data": {
        "id": "96a277d270d22f35aae9ad22",
        "publicKey": "0xef4282664d27bcc0351f29ff09b79c9ed71668c2561e54317ced541d26979e11",
        "accountAddress": "0x77b8f7474c1c63eaaa56f6069c5a529c2c86766b7df7b48439816b8cf4b13414",
        "privateKey": "0xfd9591c6abfb6332ef215558bee57af8f4529bea45435ebff6429fbc239245c9",
        "apiKey": "Get this from lync support",
        "network": "testnet",
        "email": "team@lync.world"
    }
}

Get an existing wallet

Endpoint: https://server-aptos-sdk.lync.world/api/generate_wallet/get_wallet

Method: POST

Headers:

{
    "Content-Type": "application/json",
    "Accept": "application/json",
    "x-api-key": "Get this from LYNC Support"
}

Request:

{
    "email":"team@lync.world",
    "network": 2,
    "apiKey": "Get this from lync support"
}

Parameters:

  • email : Your email address

  • network : Aptos network (1 for Mainnet & 2 for Testnet)

  • apiKey : Your api key. Get this from LYNC support

Response:

{
    "message": "User profile fetched successfully.",
    "status": 200,
    "success": true,
    "data": {
        "id": "96a277d270d22f35aae9ad22",
        "accountAddress": "0x77b8f7474c1c63eaaa56f6069c5a529c2c86766b7df7b48439816b8cf4b13414",
        "publicKey": "0xef4282664d27bcc0351f29ff09b79c9ed71668c2561e54317ced541d26979e11",
        "privateKey": "0xfd9591c6abfb6332ef215558bee57af8f4529bea45435ebff6429fbc239245c9",
        "email": "team@lync.world"
    }
}

Perform a transaction

Endpoint: https://server-aptos-sdk.lync.world/api/unity/txn2

Method: POST

Headers:

{
    "Content-Type": "application/json",
    "Accept": "application/json",
    "x-api-key": "Get this from LYNC Support"
}

Request:

{
    "apiKey": "Get this from lync support",
    "contractAddress": "0x55a5d8e2588d84ef1e9dbe4e8fba38ab0cd2cc54c35987856caece4d971c3ff5",
    "privateAddress": "0x9e568d375d7dc88dcb58577a4167b11e559b3fed222f91383518e58f8565f353",
    "contractName": "LyncNFTCollection721A",
    "functionName": "mint_nft",
    "arguments": [
        {
            "argument": 1,
            "type": 1
        }
    ],
    "network": 2,
    "usePaymaster": true
}

Parameters:

  • apiKey : Your api key. Get this from LYNC support

  • contractAddress : Smart contract address deployed to the Aptos blockchain

  • privateKey : Your private key

  • contractName : Name of the module under contractAddress

  • functionName : Name of the function to call

  • arguments : Argument array to be passed in the transaction payload { "argument": value, "type": BigInteger = 0, Integer = 1 and String = 2 }

  • network : Network on which the contract is deployed. (1 for Mainnet & 2 for Testnet)

  • usePaymaster : true to sponsor transaction, false if user pays for gas fee

Response:

{
    "message": "Success",
    "status": 200,
    "success": true,
    "data": {
        "transactionHash": "0x90e156f113a7dd95d608f66fc3607b885af446e765e93dac7291186529ce62e8"
    }
}
PreviousUnityNextJavaScript/ TypeScript

Last updated 9 months ago