_Docs/
Get StartedModulesPlatformDeployCookbookChangelogReference
_Stack
_Modules
  • Ledger
  • Numscript
  • Connectivity
  • WalletsEE
    • Prerequisites
    • Basic wallet operations
    • Managing holds
    • Creating Wallets
    • Adding funds
    • Spending funds
    • Holding and confirm
  • FlowsEE
  • ReconciliationEE
  1. Modules
  2. Wallets
  3. Spending funds
Wallets

Spending funds

Spend funds from a wallet by issuing a debit. The debit reduces the wallet's balance immediately.

Basic debit#

Debit $1.00 from a wallet. By default, funds go to the world account (representing the outside world):

fctl wallets debit <WALLET_ID> <amount> <asset>
POST/api/wallets/wallets/<WALLET_ID>/debit

Setting the destination#

Send debited funds to a specific ledger account instead of world:

fctl wallets debit <WALLET_ID> <amount> <asset>
POST/api/wallets/wallets/<WALLET_ID>/debit

Sending to another wallet#

You can also send funds directly to another wallet:

fctl wallets debit <WALLET_ID> <amount> <asset>
POST/api/wallets/wallets/<WALLET_ID>/debit

The wallet must have sufficient funds. If it doesn't, the debit fails with an INSUFFICIENT_FUND error.

Adding fundsHolding and confirm
On This Page
  • Basic debit
  • Setting the destination
  • Sending to another wallet