StaticclaimCreates a transaction to claim escrowed funds
Prerequisites:
Demos SDK instance (must have keypair set)
Social platform
Username to claim for
Signed transaction ready to submit
StaticgetComputes deterministic escrow address from platform:username MUST MATCH the node implementation!
Social platform ("twitter", "github", "telegram")
Username on that platform (e.g., "@bob")
Hex-encoded escrow address
StaticnormalizeNormalise a public-API amount input (number legacy DEM or
bigint OS) into both forms. Used at every boundary that needs
dual-shape support during the pre-/post-fork rollout.
number input: must be a non-negative integer DEM amount;
converted to OS via OS_PER_DEM. Fractional DEM number is
rejected — silently flooring (the previous behaviour) discarded
up to ~10^9 OS per call. Callers who need sub-DEM precision
must pass a bigint OS amount (e.g. denomination.demToOs("1.5")).bigint input: treated as OS; DEM form is the integer division
amountOs / OS_PER_DEM. The pre-fork sub-DEM precision rejection
lives in Demos._assertAmountAcceptableOnTargetNode (called by
sendToIdentity before this helper runs).StaticrefundCreates a transaction to refund an expired escrow
Demos SDK instance (must have keypair set)
Social platform
Username
Signed transaction ready to submit
StaticsendCreates a transaction to send DEM to a social identity escrow.
P4 dual-input:
bigint (preferred, post-v3): OS amount.number (deprecated, v2 callers): DEM amount, auto-converted.Internal carrier in tx.content.amount and gcr_edits[].amount
is bigint OS; the serializerGate (called from demos.sign)
picks the wire shape per fork status. Sub-DEM precision against
a pre-fork node throws SubDemPrecisionError.
Demos SDK instance (must have keypair set)
Social platform ("twitter", "github", "telegram")
Username on that platform
DEM number (legacy) or OS bigint (preferred).
Optionaloptions: { Optional parameters
OptionalexpiryOptionalmessage?: stringSigned transaction ready to submit
High-level API for creating escrow transactions Enables trustless sending of DEM to unclaimed social identities