Skip to main content

OperationsAPI

Access via client.operations.

supply

Plan a supply operation. Identify the wallet with walletAddress or walletId. Sign and submit before expiresAt, five minutes away (see Signing deadline). A plan by the same API key replaces that key’s earlier plan on the wallet that is still awaiting signature and has no transaction submitted or reported for it (listed in cancelledOperations). Any other live operation on the wallet fails the plan with OPERATION_IN_PROGRESS, whose error.details is OperationInProgressDetails. Two API keys planning on one wallet therefore block each other.

unwind

Plan an unwind operation. The signing deadline and busy-wallet rules are the same as for supply.

get

Get operation status.

cancel

Cancel a pending operation: one with no transaction submitted. Any operation of your organization can be cancelled by ID, including another API key’s plan that holds the wallet. Cancelling an operation that already ended returns its current status.

OperationResponse Type

Statuses

CANCELLED and EXPIRED become CONFIRMED if the operation’s planned transaction lands on chain anyway; RebelFi records it and alerts your organization.