Skip to main content

Function Signature

Description

Executes a payout that was previously quoted with getPayoutQuote. Returns the destination address and the on-chain deposit conditions your transfer must satisfy. The SDK does not send that transfer — do it yourself, for example with sendAsset. The payout must be authorized by a trigger. If you omit trigger, Portal builds a single trigger from the quote (an EQ amount condition on its cryptoAmountEstimate) using the network, sourceAddress, expiry, and nonce you passed. Pass trigger to use a permanent or quoted trigger, or your own amount conditions. Completion and failures are reported asynchronously through Noah Transaction webhooks.

Parameters

Deposit source triggers

NoahOnchainDepositSourceTrigger has one nullable field per variant. Set exactly one of them; otherwise the SDK throws a PortalException with code INVALID_PAYOUT_TRIGGER before calling the native SDK. Use the same sourceAddress, expiry, and nonce on the trigger as on the request. Amount conditions take a comparisonOperator string — a NoahComparisonOperator value (eq.value, lteq.value, or gteq.value) — and a value.

Returns

NoahInitiatePayoutResponse - An envelope containing: NoahInitiatePayoutData:

Example

With an explicit single trigger:

Errors