# Transfer Fungible Token

**EVM**

```solidity
IERC20(token).transfer(receiver, amount);
IERC20(token).safeTransfer(receiver, amount);
```

```solidity
// owner
IERC20(token).approve(spender, amount);

// spender
IERC20(token).transferFrom(owner, receiver, amount);
IERC20(token).safeTransferFrom(owner, receiver, amount);
```

**Solana**

1. From regular accounts

```rust
let transfer_accounts = TransferChecked {
    from: ctx.accounts.from_token_account.to_account_info(),
    mint: ctx.accounts.mint.to_account_info(),
    to: ctx.accounts.to_token_account.to_account_info(),
    authority: ctx.accounts.from.to_account_info(),
};

let cpi_ctx = CpiContext::new(
    ctx.accounts.token_program.to_account_info(),
    transfer_accounts,
);

transfer_checked(cpi_ctx, amount, ctx.accounts.mint.decimals)?;
```

2. From PDAs

```rust
let seeds = &[
    b"from".as_bytes(),
    &[ctx.bumps.from],
];
let signer = &[&seeds[..]];

let transfer_accounts = TransferChecked {
    from: ctx.accounts.from_token_account.to_account_info(),
    mint: ctx.accounts.mint.to_account_info(),
    to: ctx.accounts.to_token_account.to_account_info(),
    authority: ctx.accounts.from.to_account_info(),
};

let cpi_ctx = CpiContext::new_with_signer(
    ctx.accounts.token_program.to_account_info(),
    transfer_accounts,
    vault_authority_signer,
);

transfer_checked(cpi_ctx, amount, ctx.accounts.mint.decimals)?;
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://0xkowloon.gitbook.io/anchor-for-evm-developers/transfer-fungible-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
