Bucket 2: transfer assets (sign and broadcast)

Replace each V3 transfer call with sendAssets(), which builds, signs and broadcasts in one call. This covers 47 endpoints. Where you need to inspect or change the transaction first, use buildTransaction(), evaluateTransaction() and sign() instead.

In V3In Smart Wallets
fromPrivateKey in the request bodyshare, the stored signing share for the chain's curve (SECP256K1 or ED25519)
POST /v3/{chain}/transactionsendAssets() with token: "NATIVE"
ERC-20, BEP-20, TRC-20 and SPL transferssendAssets() with token set to the contract or mint address
Tatum broadcasts the signed transactionThe SDK broadcasts through the rpcUrl you pass

Send native coins or tokens

import { WalletChain } from "@tatumio/wallet-sdk";

const result = await client.sendAssets({
  body: {
    share: shares.SECP256K1.share,   // the share you stored at generation
    chain: WalletChain.ETHEREUM_MAINNET,
    to: "0xRecipientAddress",
    token: "NATIVE",                 // or an ERC-20 contract / SPL mint address
    amount: "0.01",                  // human-readable, not wei
    rpcUrl: `https://ethereum-mainnet.gateway.tatum.io/${process.env.TATUM_API_KEY}`,
    // sponsorGas: true,             // optional, see gas sponsorship
  },
});
console.log(result.transactionHash);

For Solana tokens use the ED25519 share and the mint address as token. For an account abstracted EVM client, transactionHash is a user operation hash, so a response means the transaction was submitted, not confirmed.

Inspect before you sign

const built = await client.buildTransaction({
  path: { chain: WalletChain.ETHEREUM_MAINNET },
  body: { to: "0xRecipientAddress", token: "NATIVE", amount: "0.01" },
});

// EVM and Solana only: validation and simulation before signing
const check = await client.evaluateTransaction({
  query: { chainId: WalletChain.ETHEREUM_MAINNET },
  body: { to: built.transaction.to, value: built.transaction.value, data: built.transaction.data },
});

const signed = await client.sign({
  body: {
    share: shares.SECP256K1.share,
    method: "eth_sendTransaction",
    params: [built.transaction],
    chainId: WalletChain.ETHEREUM_MAINNET,
    to: "0xRecipientAddress",
    rpcUrl: `https://ethereum-mainnet.gateway.tatum.io/${process.env.TATUM_API_KEY}`,
  },
});
console.log(signed.data); // transaction hash
  • Gas sponsorship: works only for account abstracted clients, on chains you configure with updateGasSponsorship(). It is not available on Tron and Stellar, where the sender needs TRX or XLM.
  • Other chains: sign() supports sol_signTransaction for Solana, stellar_sendTransaction for Stellar and tron_sendTransaction for Tron. buildTransaction() on Bitcoin returns the raw transaction and one signature hash per input. [To confirm how to sign and broadcast Bitcoin and Litecoin with the SDK.]
  • Chain-specific V3 calls: trustlines, Tron freeze and unfreeze, and Algorand asset opt-in have no SDK equivalent today. [To confirm.]
  • Reference: Send assets, Build, Evaluate, Sign, Gas sponsorship.

Did this page help you?