Claim escrowed funds for a social identity you have linked, end to end.
Social platform ("twitter", "github", "telegram").
Username to claim for.
Optionalopts: ProgrammaticTxOptionsFee ceiling / confirmation strategy / wait behaviour.
Refund an expired escrow back to the original depositor, end to end.
Social platform ("twitter", "github", "telegram").
Username whose expired escrow to refund.
Optionalopts: ProgrammaticTxOptionsFee ceiling / confirmation strategy / wait behaviour.
Send DEM to a social-identity escrow, end to end.
P4 dual-input amount: bigint OS (preferred) or number DEM
(legacy, auto-converted). Sub-DEM precision against a pre-fork
node throws.
import { denomination } from "@kynesyslabs/demosdk"
// auto-broadcast within the 5 DEM fee cap:
await demos.run.escrow.send(
"twitter", "@bob", denomination.demToOs(100),
{ expiryDays: 30, message: "Welcome to Demos!" },
)
// build + confirm only, broadcast later yourself:
const r = await demos.run.escrow.send(
"twitter", "@bob", 100n, undefined, { confirm: "manual" },
)
await demos.broadcast(r.validityData)
Social platform ("twitter", "github", "telegram").
Username on that platform (e.g., "@bob").
DEM number (legacy) or OS bigint (preferred).
Optionaloptions: { Optional escrow parameters (expiry, memo).
OptionalexpiryOptionalmessage?: stringOptionalopts: ProgrammaticTxOptionsFee ceiling / confirmation strategy / wait behaviour.
Social-identity escrow as one-call programmatic transactions.
Wraps the static EscrowTransaction builders so sending DEM to an unclaimed social identity, claiming it, or refunding an expired escrow collapses the classic
build/sign → confirm → broadcastflow into a single call. Each builder here returns a SIGNED transaction; the method hands a thunk producing it toctx.run(...), which confirms against the fee ceiling and auto-broadcasts — keeping fee-cap policy, confirmation strategy and result shape uniform with the rest ofdemos.run.*.