Transactions

fund-evm-key

Fund an EVM (h160) address with TAO from the signing coldkey.

View as Markdown

An EVM account's native balance lives at its ss58 mirror address (blake2_256("evm:" ++ h160)). This intent computes the mirror and transfers TAO to it; the funds then appear as the EVM account's balance in MetaMask or any Ethereum tool (displayed with 18 decimals there: 1 TAO = 1e18). Like any transfer this is irreversible — and only the holder of the EVM private key can move the funds afterwards, so double-check the address.

SignerPalletWraps
coldkeyBalancesBalances.transfer_keep_alive

Parameters

ParameterTypeRequiredDescription
evm_addressstringyesEVM address to fund, as 0x-prefixed h160 hex.
amount_taonumber | "all"yesHow much TAO to send.

Address parameters (--hotkey, --coldkey, --dest, ...) accept a raw ss58 address, an address-book or proxy-book name, or a local wallet/hotkey name.

CLI

Preview with --dry-run (shows fee, effects, and policy result without submitting), then submit:

btcli tx fund-evm-key \
  --evm-address <value> \
  --amount-tao <amount|all> --dry-run
btcli tx fund-evm-key \
  --evm-address <value> \
  --amount-tao <amount|all> -w my_coldkey

Python

import bittensor as sub
from bittensor.wallet import Wallet

wallet = Wallet(name="my_coldkey", hotkey="my_hotkey")
intent = sub.FundEvmKey(evm_address="...", amount_tao=1.0)

async with sub.Client("finney") as client:
    plan = await client.plan(intent, wallet)   # fee, effects, policy — no submission
    result = await client.execute(intent, wallet)
    if not result.success:
        print(result.error.code, result.error.remediation)

Or build it by op name, as an agent would:

await client.execute_tool("fund_evm_key", {...}, wallet)