Transactions
Multi Output
Send payments to multiple recipients in one transaction
Multi Output
Chain multiple .payToAddress() calls to send to several recipients in a single transaction. This is more efficient than separate transactions — one fee instead of many.
Multiple Recipients
import { , , } from "@evolution-sdk/evolution"
const = ({
: "preprod",
: { : "blockfrost", : "https://cardano-preprod.blockfrost.io/api/v0", : ..! },
: { : "seed", : ..!, : 0 }
})
const = await
.()
.({
: .("addr_test1vrm9x2dgvdau8vckj4duc89m638t8djmluqw5pdrFollw8qd9k63"),
: .(5_000_000n)
})
.({
: .("addr_test1qz2fxv2umyhttkxyxp8x0dlpdt3k6cwng5pxj3jhsydzer3n0d3vllmyqwsx5wktcd8cc3sq835lu7drv2xwl2wywfgs68faae"),
: .(3_000_000n)
})
.({
: .("addr_test1qpq6xvp5y4fw0wfgxfqmn78qqagkpv4q7qpqyz8s8x3snp5n0d3vllmyqwsx5wktcd8cc3sq835lu7drv2xwl2wywfgsc3z7t3"),
: .(2_000_000n)
})
.()
const = await .()
await .()Send All
Drain your entire wallet to a single address using sendAll:
import { , } from "@evolution-sdk/evolution"
const = ({
: "preprod",
: { : "blockfrost", : "https://cardano-preprod.blockfrost.io/api/v0", : ..! },
: { : "seed", : ..!, : 0 }
})
const = await
.()
.({
: .("addr_test1vrm9x2dgvdau8vckj4duc89m638t8djmluqw5pdrFollw8qd9k63")
})
.()
const = await .()
await .()This collects all wallet UTxOs and creates a single output containing all assets minus fees.
Next Steps
- Simple Payment — Single recipient payments
- Your First Transaction — Complete walkthrough
- Assets — Working with native tokens