Send Token
Transfer tokens from one address to another.
Send Fungible Token (API reference)
POST
/api/FungibleTokens/wallet-SendToken
A post request to send a token from one address to another on the Litecoin Blockchain.
Headers
Name
Type
Description
Content-Type
application/json
Authorization*
Bearer <your API key>
API access key
wallet*
String
The wallet to hold the token
encryptedpassphrase*
String
Encrypted key of the wallet to hold the token
Usev2*
String
Value should be yes or true
Request Body
Name
Type
Description
propertyid*
long
Property Identifier to which the token belong.
amount*
long
amount to token to be sent
fromaddress*
string
sending address
toaddress*
string
address to receive the token
Send Fungible Tokens with Javascript SDK
Liaas SDK package installation
/**
* send a Token to another address on the Litecoin Blockchain
**/
//all the parameters specified here are small as all the parameters in API implementation
//pass your API key or Node URL, created wallet name and encrypted key
const response = await liaasSdk.sendToken(
nodeUrl_or_apiAccessKey,
wallet,
encryptedkey,
amount,
propertyid,
fromaddress,
toaddress);
Last updated
Was this helpful?