Bucket 3: smart contract calls, tokens and NFTs
Smart Wallets have no per-operation contract endpoints. You encode the contract call yourself and sign it with sign() and eth_sendTransaction. This covers 67 endpoints: contract invocation, token, NFT and multitoken deploy, mint, burn and approve, marketplace and auction contracts, custodial wallets and Gas Pump.
| In V3 | In Smart Wallets |
|---|---|
POST /v3/{chain}/smartcontract with contractAddress, methodName, methodABI, params | Encode the call with your ABI, then sign() with eth_sendTransaction |
POST /v3/blockchain/token/mint, burn, approve, and the NFT and multitoken equivalents | Same: encode the contract method, then sign() |
| Marketplace, auction, custodial wallet and Gas Pump calls | Same: use the contract's ABI and sign() |
| Read-only calls | No signing needed. Call eth_call on the Tatum Gateway RPC for the chain. |
Call a contract method
import { Interface } from "ethers";
const abi = ["function mint(address to, uint256 amount)"];
const data = new Interface(abi).encodeFunctionData("mint", ["0xRecipient", 1000n]);
const signed = await client.sign({
body: {
share: shares.SECP256K1.share,
method: "eth_sendTransaction",
params: [{
from: evmAddress,
to: "0xContractAddress",
value: "0x0",
data,
}],
chainId: WalletChain.ETHEREUM_MAINNET,
to: "0xContractAddress",
rpcUrl: `https://ethereum-mainnet.gateway.tatum.io/${process.env.TATUM_API_KEY}`,
},
});
console.log(signed.data); // transaction hash- Check first: pass the same
to,valueanddatatoevaluateTransaction()to validate and simulate the call before you sign it. This works on EVM and Solana. - Messages and typed data:
sign()also supportspersonal_sign(EIP-191) andeth_signTypedData_v4(EIP-712), for example for permits and login challenges. - Custom protocols:
rawSign()signs an arbitrary hex digest with no chain context and no broadcast. - Deploying contracts: the SDK documents no deploy method. [To confirm whether a deploy is a contract creation sent through
sign()witheth_sendTransaction.] V3 deployed Tatum's own token, NFT, marketplace and auction contracts, so you also need their bytecode and ABI. [To confirm where these are published.] - Reference: Sign transactions, Raw signing, Evaluate.
Updated about 8 hours ago
Did this page help you?