AgentSkillsCN

Bankr Agent - Arbitrary Transactions

当用户希望“提交交易”、“执行 calldata”、“发送原始交易”、“提交交易 JSON”,或提供包含 to/data/value/chainId 字段的 JSON 对象时,应使用此技能。可处理原始 EVM 交易的提交。

SKILL.md
--- frontmatter
name: Bankr Agent - Arbitrary Transactions
description: This skill should be used when the user wants to "submit a transaction", "execute calldata", "send raw transaction", "submit transaction JSON", or provides a JSON object with to/data/value/chainId fields. Handles raw EVM transaction submission.
version: 1.0.0

Arbitrary Transaction Submission

Submit raw EVM transactions with explicit calldata to any supported chain.

JSON Format

json
{
  "to": "0x...",
  "data": "0x...",
  "value": "0",
  "chainId": 8453
}
FieldTypeDescription
tostringTarget contract address (0x + 40 hex chars)
datastringCalldata to execute (0x + hex string)
valuestringAmount in wei (e.g., "0", "1000000000000000000")
chainIdnumberTarget chain ID

Supported Chains

ChainChain ID
Ethereum1
Polygon137
Base8453
Unichain130

Prompt Examples

Submit a raw transaction:

code
Submit this transaction:
{
  "to": "0x1234567890abcdef1234567890abcdef12345678",
  "data": "0xa9059cbb000000000000000000000000recipient00000000000000000000000000000000000000000000000000000000000f4240",
  "value": "0",
  "chainId": 8453
}

Execute calldata on a contract:

code
Execute this calldata on Base:
{
  "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "data": "0x095ea7b30000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
  "value": "0",
  "chainId": 8453
}

Send ETH with calldata:

code
Submit transaction with value:
{
  "to": "0xRecipientAddress...",
  "data": "0x",
  "value": "1000000000000000000",
  "chainId": 1
}

Validation Rules

FieldValidation
toMust be 0x followed by exactly 40 hex characters
dataMust start with 0x, can be "0x" for empty calldata
valueWei amount as string, use "0" for no value transfer
chainIdMust be a supported chain ID

Common Issues

IssueResolution
Unsupported chainUse chainId 1, 137, 8453, or 130
Invalid addressEnsure 0x + 40 hex chars
Invalid calldataEnsure proper hex encoding with 0x prefix
Transaction revertedCheck calldata encoding and contract state
Insufficient fundsEnsure wallet has enough ETH/MATIC for gas + value