3A0BB</a></td></tr><tr><td>Price Feed (syrupUSDC/USDC)</td><td><a href="https://explorer.arc.io/address/0x46c87ABb22510DE522121BE80adbB0Ca05Fb14E4">0x46c87ABb22510DE522121BE80adbB0Ca05Fb14E4</a></td></tr></tbody></table>
{% endtab %}
{% endtabs %}
### syrupUSDT
{% tabs %}
{% tab title="Plasma" %}
<table><thead><tr><th width="229.9896240234375">Type</th><th>Address</th></tr></thead><tbody><tr><td>Token</td><td><a href="https://plasmascan.to/address/0xC4374775489CB9C56003BF2C9b12495fC64F0771">0xC4374775489CB9C56003BF2C9b12495fC64F0771</a></td></tr><tr><td>Pool</td><td><a href="https://plasmascan.to/address/0x1d952d2f6ee86ef4940fa648aa7477c8ff175f09">0x1d952d2f6eE86Ef4940Fa648aA7477c8fF175F09</a></td></tr><tr><td>Token Admin (Timelock)</td><td><a href="https://plasmascan.to/address/0x2efff88747eb5a3ff00d4d8d0f0800e306c0426b">0x2eFFf88747EB5a3FF00d4d8d0f0800E306C0426b</a></td></tr><tr><td>Price Feed (syrupUSDT/USDT)</td><td><a href="https://plasmascan.to/address/0x89a0e204591Fce2611e89CA7634c12B400d347fe">0x89a0e204591Fce2611e89CA7634c12B400d347fe</a></td></tr></tbody></table>
{% endtab %}
{% tab title="Mantle" %}
<table><thead><tr><th width="230.41058349609375">Type</th><th>Address</th></tr></thead><tbody><tr><td>Token</td><td><a href="https://mantlescan.xyz/token/0x051665f2455116e929b9972c36d23070f5054ce0">0x051665f2455116e929b9972c36d23070f5054ce0</a></td></tr><tr><td>Pool</td><td><a href="https://mantlescan.xyz/address/0x0aA145a62153190B8f0D3cA00c441e451529f755">0x0aA145a62153190B8f0D3cA00c441e451529f755</a></td></tr><tr><td>Token Admin (Timelock)</td><td><a href="https://mantlescan.xyz/address/0x2efff88747eb5a3ff00d4d8d0f0800e306c0426b">0x2eFFf88747EB5a3FF00d4d8d0f0800E306C0426b</a></td></tr><tr><td>Price Feed (syrupUSDT/USDT)</td><td><a href="https://mantlescan.xyz/address/0xdDEaeAdF319bd363120Af02fBdb1e2C5A3Ce172a">0xdDEaeAdF319bd363120Af02fBdb1e2C5A3Ce172a</a></td></tr></tbody></table>
{% endtab %}
{% tab title="BNB" %}
<table><thead><tr><th width="229.9505615234375">Type</th><th>Address</th></tr></thead><tbody><tr><td>Token</td><td><a href="https://bscscan.com/token/0x8E9d4cEa39299323FE8eda678cAD449718556c4e">0x8E9d4cEa39299323FE8eda678cAD449718556c4e</a></td></tr><tr><td>Pool</td><td><a href="https://bscscan.com/address/0xEAA7E1f805747ae29d5618b568d1b044A8b37A01">0xEAA7E1f805747ae29d5618b568d1b044A8b37A01</a></td></tr><tr><td>Price Feed (syrupUSDT/USDT)</td><td><a href="https://bscscan.com/address/0xac9962aAb7b8fe63fA3A5065c22D4Dd700B1C658">0xac9962aAb7b8fe63fA3A5065c22D4Dd700B1C658</a></td></tr></tbody></table>
{% endtab %}
{% tab title="Ink" %}
<table><thead><tr><th width="229.51220703125">Type</th><th>Address</th></tr></thead><tbody><tr><td>Token</td><td><a href="https://explorer.inkonchain.com/address/0x8A76fe7fA6da27f85a626c5C53730B38D13603d7">0x8A76fe7fA6da27f85a626c5C53730B38D13603d7</a></td></tr><tr><td>Pool</td><td><a href="https://explorer.inkonchain.com/address/0x543164a51401a468B6Fee3F7db27a30871448ff5">0x543164a51401a468B6Fee3F7db27a30871448ff5</a></td></tr><tr><td>Token Admin (Timelock)</td><td><a href="https://explorer.inkonchain.com/address/0x2eFFf88747EB5a3FF00d4d8d0f0800E306C0426b">0x2eFFf88747EB5a3FF00d4d8d0f0800E306C0426b</a></td></tr><tr><td>Price Feed (syrupUSDT/USDT)</td><td><a href="https://explorer.inkonchain.com/address/0x8B4EF9c2B61fdfd0c45d9897C923822aEfe10B85">0x8B4EF9c2B61fdfd0c45d9897C923822aEfe10B85</a></td></tr></tbody></table>
{% endtab %}
{% endtabs %}
### syrupUSDG
{% tabs %}
{% tab title="Robinhood" %}
<table><thead><tr><th width="229.8880615234375">Type</th><th>Address</th></tr></thead><tbody><tr><td>Token</td><td><a href="https://robinhoodchain.blockscout.com/address/0x40858070814a57FdF33a613ae84fE0a8b4a874f7">0x40858070814a57FdF33a613ae84fE0a8b4a874f7</a></td></tr><tr><td>Pool</td><td><a href="https://robinhoodchain.blockscout.com/address/0x01FA676ECC8662E6923fdF06bA5278A96ccD725c">0x01FA676ECC8662E6923fdF06bA5278A96ccD725c</a></td></tr><tr><td>Price Feed (syrupUSDG/USDG)</td><td><a href="https://robinhoodchain.blockscout.com/address/0xDd194C66aDcb422F188a04434e4824D70c151cF0">0xDd194C66aDcb422F188a04434e4824D70c151cF0</a></td></tr></tbody></table>
{% endtab %}
{% tab title="Solana" %}
<table><thead><tr><th width="229.53826904296875">Type</th><th>Address</th></tr></thead><tbody><tr><td>Token</td><td><a href="https://explorer.solana.com/address/CYB6WRi2YuV4Ui6q1dieP5Raev6ah7qftGsQAxJiZo8f">CYB6WRi2YuV4Ui6q1dieP5Raev6ah7qftGsQAxJiZo8f</a></td></tr><tr><td>Pool</td><td><a href="https://explorer.solana.com/address/H1w3zL4yJKqHXut3dHvFQVCbjmYt5DZ3ioZcZrYZZD11">H1w3zL4yJKqHXut3dHvFQVCbjmYt5DZ3ioZcZrYZZD11</a></td></tr></tbody></table>
{% endtab %}
{% tab title="Arbitrum" %}
<table><thead><tr><th width="229.9678955078125">Type</th><th>Address</th></tr></thead><tbody><tr><td>Token</td><td><a href="https://arbiscan.io/address/0xE1B0dC5A21b10f1634fBfbE9976fBA2Ee2e1c762">0xE1B0dC5A21b10f1634fBfbE9976fBA2Ee2e1c762</a></td></tr><tr><td>Pool</td><td><a href="https://arbiscan.io/address/0x5355292a5C36C4094B93fB62aA1FEFCa6e28b75f#code">0x5355292a5C36C4094B93fB62aA1FEFCa6e28b75f</a></td></tr><tr><td>Price Feed (syrupUSDG/USDG)</td><td><a href="https://arbiscan.io/address/0x6b1aBf37cFB16deedD27D7C23168e7dF4feD8AFF">0x6b1aBf37cFB16deedD27D7C23168e7dF4feD8AFF</a></td></tr></tbody></table>
{% endtab %}
{% tab title="Ink" %}
<table><thead><tr><th width="229.98095703125">Type</th><th>Address</th></tr></thead><tbody><tr><td>Token</td><td><a href="https://explorer.inkonchain.com/address/0xeBE9ed66eFe0948D0c1B72b0157Fc17733667018">0xeBE9ed66eFe0948D0c1B72b0157Fc17733667018</a></td></tr><tr><td>Pool</td><td><a href="https://explorer.inkonchain.com/address/0x376d6f0e7718B6F5642D92F13ca516c8B4f5A91F">0x376d6f0e7718B6F5642D92F13ca516c8B4f5A91F</a></td></tr><tr><td>Token Admin (Timelock)</td><td><a href="https://explorer.inkonchain.com/address/0x2eFFf88747EB5a3FF00d4d8d0f0800E306C0426b">0x2eFFf88747EB5a3FF00d4d8d0f0800E306C0426b</a></td></tr><tr><td>Price Feed (syrupUSDG/USDG)</td><td><a href="https://explorer.inkonchain.com/address/0xbc9E6Fa14945C6f486d17e0aF4f982d63310Ee35">0xbc9E6Fa14945C6f486d17e0aF4f982d63310Ee35</a></td></tr></tbody></table>
{% endtab %}
{% endtabs %}
Price Feeds are onchain contracts that Chainlink updates on a set heartbeat. They can be read directly. To consume Price Feeds, use the Chainlink docs:
1. [Price Feeds Addresses](https://docs.chain.link/data-feeds/price-feeds/addresses)
2. [Consuming Data Feeds](https://docs.chain.link/data-feeds/getting-started)
### **Price Streams**
Price Streams deliver low-latency signed price reports offchain that your contract verifies onchain when consumed.
<table><thead><tr><th width="149.64227294921875">Price Stream</th><th>Address / Link</th></tr></thead><tbody><tr><td>syrupUSDC/USDC</td><td><a href="https://data.chain.link/streams/syrupusdc-usdc-exchangerate-streams">0x000721629eb23678e5c52595523785ae4e0ef470ca8a1cb7e894edcfa03dcfe9</a></td></tr><tr><td>syrupUSDG/USDG</td><td><a href="https://data.chain.link/streams/syrupusdg-usdg-exchangerate-streams">0x0007f1bf39f52bb9fc4c0a87fe2d1de5e8105a2d3899ca09051082337cc44d91</a></td></tr></tbody></table>
To consume Price Streams, use the Chainlink Docs:
* [Streams Addresses](https://data.chain.link/streams)
* [Streams Integration (EVM)](https://docs.chain.link/data-streams/tutorials/evm-onchain-report-verification)
* [Streams Integration (Solana)](https://docs.chain.link/data-streams/tutorials/solana-onchain-report-verification)
## Testnet Addresses
CCIP provides two ERC-20 test tokens, so you don’t depend on third-party liquidity while testing:
* **CCIP-BnM (Burn & Mint):** deployed on each testnet; transfers are burn → mint
* **CCIP-LnM (Lock & Mint):** minted only on Ethereum Sepolia
Find out more and acquire test tokens by visiting the [CCIP Test Tokens page](https://docs.chain.link/ccip/test-tokens) and the addresses of tokens available via the [CCIP Testnet Directory](https://docs.chain.link/ccip/directory/testnet).
## Integration paths
### 1) Offchain integrators (bridge, wallets & aggregator UIs)
If you run a bridge, wallet, or aggregator UI, use the **token** and **router** addresses per chain (below) to configure your routes and call patterns. Typically, you won’t deploy onchain contracts - your UI directs users to call the CCIP Router with the correct params.
#### High-level flow
1. User picks source & destination chains in your UI or protocol flow
2. Approve syrupUSDC / syrupUSDT to the CCIP Router on the source chain (standard ERC-20 approval; Solana uses SPL program approvals)
3. Initiate CCIP transfer via the Router with destination chain selector, recipient, and amount
4. CCIP finalizes on destination chain and releases/mints syrupUSDC / syrupUSDT to the recipient
#### Implementation notes
* Always call the CCIP Router listed for the source chain; don’t hit low-level endpoints directly
* Chain selectors & fees: Pull chain selectors and fee token options from the [CCIP directory](https://docs.chain.link/ccip/directory/mainnet); keep them in config
* Solana (SVM) specifics: Use the SVM Router program (`ccip_send`) and follow the [SVM API docs](https://docs.chain.link/ccip/api-reference/svm/v1.6.0/router?utm_source=chatgpt.com) for building send/receive flows
* Observability: Track the CCIP message ID from the Router response and correlate with destination events
### 2) Onchain integrators (protocols)
If your protocol needs to bake in crosschain syrupUSDC transfers, implement CCIP send/receive flows in your smart contracts and interact with the Router on the source chain, please contact us at <partnerships@maple.finance>.
## Resources & Contact
* Partnerships & queries: <partnerships@maple.finance>
* [CCIP docs](https://docs.chain.link/ccip)
* [CCIP Mainnet Directory](https://docs.chain.link/ccip/directory/mainnet)
* [Token page (syrupUSDC)](https://docs.chain.link/ccip/directory/mainnet/token/syrupUSDC)
* [Token page (syrupUSDT)](https://docs.chain.link/ccip/directory/mainnet/token/syrupUSDT)
* [Token page (syrupUSDG)](https://docs.chain.link/ccip/directory/mainnet/token/syrupUSDG)
* [Integration Support](https://chain.link/ccip-contact)
# syrupUSDC Native Mint/Redeem
Enable syrupUSDC deposits and withdrawals in your app via CCIP on chains other than Ethereum. For wallets, apps, DEXes, custody solutions etc.
> **Deposits & withdrawals for Solana & EVM chains are only available for syrupUSDC. syrupUSDT support is coming in Q2 2026.**
{% hint style="info" %}
Step-by-step
1. [**Overview**](#overview)
2. [**Prerequisites**](#prerequisites)
3. [**Receiver Contract Details**](#receiver-contract-details)
4. [**Message Structure**](#message-structure)
5. [**Building the Message**](#building-the-message)
6. [**Gas Estimation**](#gas-estimation)
7. [**Fee Estimation**](#fee-estimation)
8. [**Executing the Transaction**](#executing-the-transaction)
9. [**Complete Code Example**](#complete-code-example)
10. [**Message Monitoring with CCIP API**](#message-monitoring)
11. [**Important Notes**](#important-notes)
{% endhint %}
## Overview <a href="#overview" id="overview"></a>
Maple's receiver contract processes programmable token transfers via CCIP messages. The receiver contract handles two types of operations:
* **Deposits**: When USDC is sent to the receiver, it processes a deposit operation
* **Withdrawals**: When SyrupUSDC is sent to the receiver, it processes a withdrawal operation
This guide covers sending messages from **Solana** to **Ethereum** (testnet), but the same principles apply to EVM-to-EVM transfers with appropriate token address changes.
## Step By Step Guide
### 1. Prerequisites <a href="#prerequisites" id="prerequisites"></a>
> *This guide uses `@chainlink/ccip-sdk` v0.95. The stable v1.0 release will be available shortly.*
* Node.js 20 or higher
* `@chainlink/ccip-sdk` ^0.95.0 - install via npm
* `@solana/web3.js` ^1.98.4
* `@solana/wallet-adapter-react` (for wallet integration)
* `ethers` ^6.13.4 (for EVM address conversion)
* `viem` ^2.43.5 (for EVM chain interactions)
#### Installation
```bash
npm install @chainlink/ccip-sdk@^0.95.0 @solana/web3.js @solana/wallet-adapter-react ethers viem
```
### 2. Receiver Contract Details <a href="#receiver-contract-details" id="receiver-contract-details"></a>
#### Testnet Deployment (Ethereum Sepolia)
* **Receiver Address**: `0x02b6a75c5d1f430f0614dc5ac8ad5f9d35fba2c4`
* **Receiver Address (bytes32)**: `0x00000000000000000000000002b6a75c5d1f430f0614dc5ac8ad5f9d35fba2c4`
* **Pool Address**: `0x3EB612858EE843eBb14Df37b9Ec2c7c82B23eE2B`
* **Destination Chain**: Ethereum Sepolia
* **Chain Selector**: `16015286601757825753`
> **⚠** These addresses are for testnet only. When deploying to mainnet, you must update all addresses to be mainnet from [Asset Integration: Crosschain](/integrate/crosschain/syrupusd-crosschain).
#### Token Addresses
**Solana (Devnet):**
* **USDC Mint**: `4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU`
* **Pool Token Mint**: `6Sn78bdY12h6j5wVzeXqYrTZboKPqBtqjB4p5xsRNFaX`
**Ethereum (Sepolia Testnet):**
* **USDC**: Different from Solana - use the USDC contract address on Ethereum Sepolia
* **syrupUSDC**: Use the syrupUSDC contract address on Ethereum Sepolia
> **⚠** For EVM-to-EVM deposits and withdrawals, use the appropriate USDC or syrupUSDC addresses for the destination chain from [Asset Integration: Crosschain](/integrate/crosschain/syrupusd-crosschain).
### 3. Message Structure <a href="#message-structure" id="message-structure"></a>
The Maple receiver contract expects a `UniversalMessage` struct encoded as ABI-encoded bytes:
```solidity
struct UniversalMessage {
bytes32 universalSenderAddress; // Solana address converted to bytes32
address pool; // Pool contract address
bytes32 metaData; // 32 bytes of metadata (typically zeros)
}
```
#### Field Descriptions
1. **universalSenderAddress** (`bytes32`): The Solana sender's public key converted to bytes32 format
* Example: `2hVTZGxQZTpPjarHQsnQfnRSGSy8LPy85szn8Wy4sj5V` → `0x193b18c1b4280b6fcb542dc733cfccc3b4e56b287e04647317bdb129685854ac`
2. **pool** (`address`): The Maple pool contract address on Ethereum
* Testnet: `0x3EB612858EE843eBb14Df37b9Ec2c7c82B23eE2B`
3. **metaData** (`bytes32`): Used to identify the source of deposits/withdrawals. Used for incentive campaigns and support. Use `0:[your protocol name]` encoded as bytes32
* E.g. `0:maple` as bytes32
* Default: `0x0000000000000000000000000000000000000000000000000000000000000000`
### 4. Building the Message <a href="#building-the-message" id="building-the-message"></a>
#### Step 1: Convert Solana Address to bytes32
{% code expandable="true" %}
```typescript
import { PublicKey } from "@solana/web3.js";
import { zeroPadValue } from "ethers";
function solanaToBytes32(solanaAddress: string): string {
// Convert Solana public key to bytes32 hex string
const publicKey = new PublicKey(solanaAddress);
const hex = "0x" + publicKey.toBuffer().toString("hex");
// Pad to 32 bytes (64 hex characters) using zeroPadValue from ethers
return zeroPadValue(hex, 32);
}
// Example usage
const solanaAddress = "2hVTZGxQZTpPjarHQsnQfnRSGSy8LPy85szn8Wy4sj5V";
const universalSenderAddress = solanaToBytes32(solanaAddress);
// Result: 0x193b18c1b4280b6fcb542dc733cfccc3b4e56b287e04647317bdb129685854ac
```
{% endcode %}
#### Step 2: Encode the Struct
{% code expandable="true" %}
```typescript
import { encodeAbiParameters, parseAbiParameters } from "viem";
function encodeUniversalMessage(
universalSenderAddress: string, // bytes32 hex string
poolAddress: string, // EVM address
metaData: string = "0x0000000000000000000000000000000000000000000000000000000000000000"
): `0x${string}` {
return encodeAbiParameters(
parseAbiParameters("bytes32, address, bytes32"),
[
universalSenderAddress as `0x${string}`,
poolAddress as `0x${string}`,
metaData as `0x${string}`
]
);
}
// Example usage
const universalSenderAddress = "0x193b18c1b4280b6fcb542dc733cfccc3b4e56b287e04647317bdb129685854ac";
const poolAddress = "0x3EB612858EE843eBb14Df37b9Ec2c7c82B23eE2B";
const metaData = "0x0000000000000000000000000000000000000000000000000000000000000000";
const encodedData = encodeUniversalMessage(universalSenderAddress, poolAddress, metaData);
// Result: 0x193b18c1b4280b6fcb542dc733cfccc3b4e56b287e04647317bdb129685854ac0000000000000000000000003eb612858ee843ebb14df37b9ec2c7c82b23ee2b0000000000000000000000000000000000000000000000000000000000000000
```
{% endcode %}
#### Step 3: Convert Receiver Address to bytes32
{% code expandable="true" %}
```typescript
function evmToBytes32(address: string): string {
if (!address.startsWith("0x")) {
address = `0x${address}`;
}
if (address.length === 42) {
// Standard EVM address (20 bytes) - pad to 32 bytes
return zeroPadValue(address, 32);
}
return address; // Already bytes32 format
}
// Example usage
const receiverAddress = "0x02b6a75c5d1f430f0614dc5ac8ad5f9d35fba2c4";
const receiverBytes32 = evmToBytes32(receiverAddress);
// Result: 0x00000000000000000000000002b6a75c5d1f430f0614dc5ac8ad5f9d35fba2c4
```
{% endcode %}
### 5. Gas Estimation <a href="#gas-estimation" id="gas-estimation"></a>
> **⚠** Always use `estimateReceiveExecution` to estimate gas limits. Never hardcode gas values as they vary based on message data, token amounts, and receiver contract complexity.
Gas estimation determines how much gas is needed for the receiver contract to execute the message on the destination chain. The CCIP SDK provides accurate gas estimation through the `estimateReceiveExecution` function, which should be used for every message.
#### Using estimateReceiveExecution
{% code expandable="true" %}
```typescript
import { SolanaChain } from "@chainlink/ccip-sdk";
import { EVMChain, estimateReceiveExecution } from "@chainlink/ccip-sdk";
import { fromViemClient } from "@chainlink/ccip-sdk/viem";
import { createPublicClient, http } from "viem";
async function estimateGasLimit(
solanaChain: SolanaChain,
senderAddress: string, // Solana sender address (base58 string)
receiverAddress: string, // Standard EVM address (20 bytes), not bytes32
encodedData: string,
tokenAmounts: Array<{ token: string; amount: bigint }>,
destinationChainSelector: string
): Promise<bigint> {
// Get destination EVM chain config
const destinationChainConfig = {
id: 11155111, // Ethereum Sepolia
name: "Ethereum Sepolia",
chainSelector: "16015286601757825753",
routerAddress: "0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59",
explorerUrl: "https://sepolia.etherscan.io",
rpcUrl: "https://rpc.sepolia.org",
nativeCurrency: { name: "Sepolia ETH", symbol: "ETH", decimals: 18 },
};
// Create destination EVM chain client
const destClient = createPublicClient({
chain: {
id: destinationChainConfig.id,
name: destinationChainConfig.name,
nativeCurrency: destinationChainConfig.nativeCurrency,
rpcUrls: { default: { http: [destinationChainConfig.rpcUrl] } },
blockExplorers: { default: { name: "Explorer", url: destinationChainConfig.explorerUrl } },
},
transport: http(destinationChainConfig.rpcUrl),
});
const destEvmChain = await fromViemClient(destClient);
// Solana router program ID
const routerProgramId = "Ccip842gzYHhvdDkSyi2YVCoAWPbYJoApMFzSxQroE9C";
// Estimate gas
// Note: senderAddress is required for accurate gas estimation
const gasEstimate = await estimateReceiveExecution({
source: solanaChain,
dest: destEvmChain,
routerOrRamp: routerProgramId,
message: {
sender: senderAddress, // Solana sender address (required for accurate estimation)
receiver: receiverAddress, // Use standard EVM address (20 bytes) for gas estimation
data: encodedData,
tokenAmounts: tokenAmounts.length > 0 ? tokenAmounts : undefined,
},
});
return BigInt(gasEstimate);
}
// Example usage
const solanaSenderAddress = "2hVTZGxQZTpPjarHQsnQfnRSGSy8LPy85szn8Wy4sj5V"; // Solana public key
const receiverAddress = "0x02b6a75c5d1f430f0614dc5ac8ad5f9d35프로젝트로 돌아가기