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:

Get an existing wallet

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

Method: POST

Headers:

Request:

Parameters:

  • email : Your email address

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

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

Response:

Perform a transaction

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

Method: POST

Headers:

Request:

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:

Last updated