Navigate...

K

Cancel Distribution

sdk.distributions.cancel(id)

Cancel a distribution. Works from DRAFT, PREPARED, or IN_PROGRESS status. Distributions in COMPLETED, PARTIALLY_COMPLETED, or FAILED status cannot be cancelled. Note that cancelling an IN_PROGRESS distribution does not reverse already-confirmed on-chain transactions.

API key required to run methods

API Key *

Don't have an API key?Get one at dashboard.multisender.app

Base URL

id

string

required

Distribution ID to cancel

Distribution ID

Returns

Distribution

Distribution with status updated to CANCELLED

id

string

Distribution identifier

name

string

Distribution name

status

string

CANCELLED

chainId

number

Target blockchain chain ID

tokenAddress

string

Token contract address

tokenSymbol

string

Token symbol

totalRecipients

number | null

Number of recipients

totalAmount

string | null

Total token amount

account

string | null

Sender wallet address

createdAt

string

ISO 8601 creation timestamp

updatedAt

string

ISO 8601 last update timestamp

Errors

400

Invalid distribution id

401

The request is not authorized

403

You do not have permission to access this resource

404

Distribution not found

409

Cannot cancel completed distribution

See Also

distribute()

Create a new distribution to replace the cancelled one

Generated Code