TransferRequestDto
Data structure for performing a native token transfer

Signature

1
{
2
walletId! : string;
3
to! : string;
4
secretType! : SecretType;
5
data! : string;
6
value! : BigDecimal;
7
chainSpecificFields? : object;
8
}
Copied!

Parameters

Parameter
Required
Type
Description
walletId
True
String
ID of the wallet one wants to sign with.
to
True
String
Destination address of the transaction. Can be an address or an email address.
secretType
True
​SecretType​
Chain the transaction will be executed on.
data
False
String
Data you want to send. This field will be ignored when building a token transaction request
value
True
Number
Token value that should be transferred.
ChainSpecificFields
False
Object
This field can be used to pass properties specific to a chain. More info: Chain specific fields​
​
πŸ§™ You don’t have to take into account the number of decimals for different tokens, Venly handles that for you.
Example: If a token has 18 decimals and you want to transfer 1 token, provide the value 1. Venly will translate this to the correct non-decimal value (1 * 10e18).

Example

Plain
With Hedera Memo
1
{
2
"walletsId" : "cdc4c08a-b8fa-4e4c-z5a2-92c87b80f174",
3
"to" : "0xdc71b72db51e227e65a45004ab2798d31e8934c9",
4
"secretType" : "VECHAIN",
5
"data" : "0x",
6
"value" : 1.15
7
}
Copied!
1
{
2
"secretType": "HEDERA",
3
"walletId": "d1e091d7-0fab-4f46-8afd-ad31f1e735d7",
4
"to": "0.0.2278508",
5
"value": "0.0314",
6
"chainSpecificFields": {
7
"transactionMemo": "0.0.2810009"
8
}
9
}
Copied!

Function Types

Last modified 3mo ago