DEVELOPER DOCS
Commands
withdraw

withdraw

Withdraws funds from either Irys' mainnet or devnet.

ℹ️

Not all calls to withdraw will post immediately to your account, some blockchains are faster than others. When funding with AR, it can take upwards of 40 minutes before the balance post. For MATIC, ETH and SOL, balances will usually post in < 10s.

Parameters

  • -n: The network to check. Values are mainnet or devnet (if you omit, the default is mainnet).
  • -t: The token to withdraw.
  • -w: Your private key.
  • --provider-url: RPC URL to use. This is only required when using Devnet.

Examples

Mainnet

irys withdraw 1000000000000000 \
  -t matic \
  -w bf20......c9885307

Devnet

irys withdraw 1000000000000000 \
  -n devnet \
  -t matic \
  -w bf20......c9885307 \
  --provider-url https://rpc-mumbai.maticvigil.com
ℹ️

Devnet RPC URLs change often, use a recent one from https://chainlist.org/ (opens in a new tab)