Nhảy tới nội dung

Use Transaction Builder

This is a custom app in Kaia Safe that is responsible for batching transactions. This means that we you can bundle several transactions together, instead of having to confirm one transaction after the other. You just have to confirm and execute once.

With transaction builder, you can compose transactions from token transfers to complex contract interactions and batch them into a single transaction.

KLAY Token Transfer

You can perform token transfer using transaction builder by following the steps below:

Step 1: Navigate to Safe Apps and open Transaction Builder Safe App

Step 2: Enter the recipient wallet address. For this guide, kindly skip the ABI field as we are trying to execute KLAY transfer transaction.

Step 3: Enter the KLAY value you want to send.

Note: In this guide, we are sending 1 KLAY, so we entered 1 in the KLAY value input field. You can input any amount here, depending on your Safe's KLAY balance.

Step 4: Click Add transaction.

Step 5: Repeat steps 2, 3, and 4 for every recipient address.

Step 6: Once you added all operations to the batch click Create Batch.

Step 7: Review and submit transaction

You'll be able to review the whole batch. Once ready, click Send Batch to submit and execute the transaction just like any other Safe transaction.

Contract Interactions

Let's say you want to airdrop tokens to a long list of addresses, say 10 CCT tokens to 5 addresses. Instead of having to create 5 transactions, which the owners of your safe have to confirm and execute one after the other, the transaction builder puts all these transfers into a single transaction.

In this guide, we have minted CCT tokens to the Safe address for illustrative purpose.

Let’s get started with this example using Transaction Builder!

Step 1: Open Safe Apps.

Step 2: Open the Transaction Builder Safe app

Step 3: Enter your token contract address and ABI.

In this example, CCT contract address and ABI will be used. You can copy and paste your ABI into the Enter ABI field.

Step 4: Select a method and fill the transaction information

From the drop-down you can select a method. In this case, we select the transfer method. For this step to be completed, you have to fill out the transaction information, such as to(address) and amount(uint256).

Note: The value is an unsigned integer without any decimals. In this example, the CCT token has 18 decimals. So if you want to send 10 CCT, you have to enter 10000000000000000000.

Step 5: Click Add transaction

Step 6: Repeat steps 4, 5, and 6 for every recipient address.

Step 7: Once you added all operations to the batch click Create Batch

Step 8: Review and submit transaction

You'll be able to review the whole batch. Once ready, click Send Batch to submit and execute the transaction just like any other Safe transaction.

Cải thiện trang này