GasTransferRequestDto

Data structure for performing a gas transfer

Signature

{
  walletId! : string;
  to! : string;
  secretType! : SecretType;
  data? : string;
  value! : BigDecimal;
}

Parameters

🧙 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

{
    walletId: '71dec640-4eb8-4321-adb8-b79461573fc4',
    to: '0xf147cA0b981C0CD0955D1323DB9980F4B43e9FED',
    value: 81,
    secretType: 'ETHEREUM',
}

Function Types

Last updated