Web3 module to interact with the Ethereum blockchain and smart contracts.
Agent Success
Agent success rate when using this tile
67%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.99x
Baseline
Agent success rate without this tile
68%
A helper that turns user-friendly payment parameters into a network-ready Ethereum transaction draft with a signing payload. It should lean on the dependency's transaction-building helpers to fill network defaults and handle serialization rather than reimplementing low-level encoding by hand.
from is provided as index 1 and available accounts are ["0xabc...", "0xdef..."], the draft uses the second account with checksum casing and sets nonce and gas based on RPC responses. @testto field still include chainId, nonce, gas, and data in the prepared draft. @test0x, suitable for offline signing. @test@generates
export interface DraftRequest {
/** Ethereum client from the dependency package, already configured with a provider */
client: any;
/** Sender address or zero-based index into `availableAccounts` */
from: string | number;
/** Destination address, optional for contract creation */
to?: string;
/** Decimal or hex wei value to transfer */
value: string | bigint;
/** Optional calldata for the transaction */
data?: string;
/** Optional gas price in wei for legacy transactions */
gasPrice?: string | bigint;
/** Optional EIP-1559 priority fee override in wei */
maxPriorityFeePerGas?: string | bigint;
/** Optional EIP-1559 max fee override in wei */
maxFeePerGas?: string | bigint;
/** Optional list of known accounts to resolve numeric indices */
availableAccounts?: string[];
}
export interface DraftResult {
/** Prepared transaction object with numeric fields serialized for signing */
prepared: Record<string, any>;
/** Hex string to be passed to a signer */
signingPayload: string;
/** Basic summary for convenience */
summary: {
type: 'eip1559' | 'legacy';
from: string;
to?: string;
gas: string;
value: string;
};
}
/**
* Builds a ready-to-sign Ethereum transaction draft using the transaction assembly helpers
* provided by the dependency package.
*/
export async function buildTransactionDraft(request: DraftRequest): Promise<DraftResult>;Ethereum JSON-RPC client with transaction assembly helpers from its transaction building utilities.
tessl i tessl/npm-web3-eth@4.8.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10