transact

Call Re-added v210 → v323, v326 → current #0

Submits an Ethereum-format transaction for execution.

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: developerswallets

The Big Picture

Bridge between Ethereum tooling and Bittensor - use standard Ethereum wallets and libraries.

Use Cases

  • Submit from MetaMask
  • Use ethers.js/web3.js
  • Deploy via Ethereum tools

From Chain Metadata

Transact an Ethereum transaction.

Input Parameters

#NameTypeDescription
0
transaction
TransactionV3 transaction (TransactionV3)

Permissions

Origin
Unknown
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Valid Ethereum tx
  • Signature valid
  • Nonce correct
  • Balance for gas + value

Effects

Events Emitted

Postconditions

  • Transaction executed
  • Receipt generated
  • Ethereum.Executed emitted

Side Effects

  • Updates Pending storage
  • Updates CurrentBlock and CurrentReceipts

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Build transact call
const transaction = 0 as any /* TransactionV3 */;

const call = api.tx[stringCamelCase("Ethereum")][stringCamelCase("transact")](
  transaction
);

On-Chain Activity

Usage Frequency
●●●●○○ Active 100K–1M extrinsics

Significant regular use

#28 most used call

Success Rate Near-certain

Over 95% of submissions succeed

As of block 7,429,232

Version History

v210 block 4,345,556 1 args
v326 block 6,608,228 1 args Current

Runtime Info

Pallet Index
21
Call Index
0
First Version
v210
Current Version
v393