Native Transfer
Transfer ETH/BNB to another address. Endpoint:/evm/transfer/transaction
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Chain identifier |
recipient | string | Yes | Recipient address |
amount | string | Yes | Amount in wei |
wallet | string | Yes | Sender address |
- Socket.IO
- HTTP
socket.emit(
"/evm/transfer/transaction",
{
chain: "eth",
wallet: "0x10a64c6d7f12c47b7c66c5b4e20e72bc1fcd5d9e",
recipient: "0xRecipientAddress",
amount: "100000000000000000", // 0.1 ETH in wei
},
(response) => {
console.log(response);
}
);
await fetch("https://api.chainworks.co/evm/transfer/transaction", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: CHAINWORKS_API_AUTH_TOKEN,
},
body: JSON.stringify({
chain: "eth",
wallet: "0x10a64c6d7f12c47b7c66c5b4e20e72bc1fcd5d9e",
recipient: "0xRecipientAddress",
amount: "100000000000000000", // 0.1 ETH in wei
}),
});
Token Transfer
Transfer ERC-20 tokens. Endpoint:/evm/transfer/token/transaction
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Chain identifier |
token | string | Yes | Token contract address |
recipient | string | Yes | Recipient address |
amount | string | Yes | Amount in token decimals |
wallet | string | Yes | Sender address |
- Socket.IO
- HTTP
socket.emit(
"/evm/transfer/token/transaction",
{
chain: "eth",
token: "0x6982508145454Ce325dDbE47a25d4ec3d2311933", // PEPE
wallet: "0x10a64c6d7f12c47b7c66c5b4e20e72bc1fcd5d9e",
recipient: "0xRecipientAddress",
amount: "1000000000000000000000000", // 1,000,000 PEPE
},
(response) => {
console.log(response);
}
);
await fetch("https://api.chainworks.co/evm/transfer/token/transaction", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: CHAINWORKS_API_AUTH_TOKEN,
},
body: JSON.stringify({
chain: "eth",
token: "0x6982508145454Ce325dDbE47a25d4ec3d2311933", // PEPE
wallet: "0x10a64c6d7f12c47b7c66c5b4e20e72bc1fcd5d9e",
recipient: "0xRecipientAddress",
amount: "1000000000000000000000000", // 1,000,000 PEPE
}),
});

