Send

Introduction

The Send block simply sends an asset from your either your key wallet or your smart wallet to another address. This is useful for sending on funds that you have just swapped, for example.

The above block will send a small amount of aUSDC to the address in the "Receiver address" box.

Once the user executes this block, the aUSDC will be sent to the address entered in the previous step.

Implementation

Copy and paste the code below to get started.

import {
  Etherspot,
  TRANSACTION_BLOCK_TYPE,
} from "@etherspot/react-transaction-buidler";

// ...

return (
  <Etherspot
    defaultTransactionBlocks={[{ type: TRANSACTION_BLOCK_TYPE.SEND_ASSET }]}
  />
);

Last updated