typescript-sdk

Home > @3rdweb/sdk > SplitsModule > distributeToken

SplitsModule.distributeToken() method

Distribute Funds

Signature:

distributeToken(tokenAddress: string): Promise<void>;

Parameters

Parameter Type Description
tokenAddress string  

Returns:

Promise<void>

Remarks

Distribute funds held by the contract in the native currency to all recipients.

Example

// The address of the currency to distribute funds
const tokenAddress = "0x..."
await module.distributeToken(tokenAddress);