GasTransferRequestDto
Data structure for performing a gas transfer

Signature

1
{
2
walletId! : string;
3
to! : string;
4
secretType! : SecretType;
5
data? : string;
6
value! : BigDecimal;
7
}
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.
πŸ§™ 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

1
{
2
walletId: '71dec640-4eb8-4321-adb8-b79461573fc4',
3
to: '0xf147cA0b981C0CD0955D1323DB9980F4B43e9FED',
4
value: 81,
5
secretType: 'ETHEREUM',
6
}
Copied!

Function Types