Skip to main content

Transfer Tokens

Transferring Tokens

This guide will walk you through the process of transferring tokens using Credenza. You can transfer either CRED or SUI tokens.

SUI Required

Ensure you have enough SUI, the native currency, to cover transaction fees to complete the transaction successfully.

UI Transfer Overview

You can transfer tokens using Credenza's user interface. This method is user-friendly and requires no programming knowledge.

For detailed instructions on how to use the UI for token transfers, please refer to the Send Tokens Page.

Programmatic Transfer

You can initiate a token transfer not only from the UI but also programmatically using the Passport. Below is an example code snippet to accomplish this task:

typescript
import { Passport } from '@credenza3/passport-sui'

const passport = new Passport()
await passport.init()


// intiate SUI transfer
await passport.sendTokens('user_address', 100, true);

or

// intiate CRED transfer
await passport.sendTokens('user_address', 100, false);