Relay constructor

Relay({
  1. @Default('fuse') String network,
  2. @Default(0) int gasPrice,
  3. @Default(700000) int gasLimit,
  4. @Default({}) Map<String, dynamic>? transactionBody,
  5. required String walletAddress,
  6. required String walletModuleAddress,
  7. required String data,
  8. required String nonce,
  9. required String methodName,
  10. required String signature,
  11. required String walletModule,
  12. String? externalId,
})

Constructs a new Relay instance.

Parameters:

  • network – The network type, defaults to 'fuse'.
  • gasPrice – The gas price for the relay, defaults to 0.
  • gasLimit – The gas limit for the relay, defaults to 700000.
  • transactionBody – The transaction body as a map, defaults to an empty map.
  • walletAddress – The wallet address, required.
  • walletModuleAddress – The wallet module address, required.
  • data – The data for the relay, required.
  • nonce – The nonce for the relay, required.
  • methodName – The method name for the relay, required.
  • signature – The signature for the relay, required.
  • walletModule – The wallet module for the relay, required.
  • externalId – The external ID for the relay, optional.

Implementation

factory Relay({
  @Default('fuse') String network,
  @Default(0) int gasPrice,
  @Default(700000) int gasLimit,
  @Default({}) Map<String, dynamic>? transactionBody,
  required String walletAddress,
  required String walletModuleAddress,
  required String data,
  required String nonce,
  required String methodName,
  required String signature,
  required String walletModule,
  String? externalId,
}) = _Relay;