Create a session
createDeposit and createWithdrawal take the same request shape.
Request fields
Beyondchain / token / recipient, the create call accepts:
For a session that offers the payer more than one destination, see
multi-destination deposits (
destinations /
destinationRecipients) — those replace the top-level chain / token /
recipient.
Idempotency
Creation is idempotent onorderId. Replaying the same orderId while a
session is still open returns the existing session rather than opening a
second one:
Reading a session
Prefer a webhook over polling. The webhook fires as soon as
funds land; polling adds latency and load for the same answer. Read the session
to confirm what a webhook told you, not to discover it.
Sandbox
Pass ansk_test_… key. Nothing else changes — same functions, same host, same
payloads, testnets only. See Environments.