Skip to main content

Documentation Index

Fetch the complete documentation index at: https://home.1151.to/llms.txt

Use this file to discover all available pages before exploring further.

For Ethereum wallets, you can send tokens not listed under asset by providing the ERC‑20 contract address. When you include eth_erc20_contract, omit asset.

Examples

from py_1151 import Client

client = Client(api_key="sk_live_...")

success, tx_id = client.send_from_wallet(
    wallet_id="w_eth_wallet_id_or_address",
    amount=12.5,
    destination="0xA1b02d8c67b0FDCF4E379855868DeB470E169cfB",
    eth_erc20_contract="0xA0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    eth_fee=65_000,
    metadata={"invoice": "INV-43"},
)

if not success:
    print("Transfer failed:", tx_id)
else:
    print("Broadcasted transaction", tx_id)
Notes:
  • Choose one on Ethereum: either asset or eth_erc20_contract (not both).
  • amount is in token units for ERC‑20 transfers.