Skip to main content

Multiwrap.getWrappedContents() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Get the contents of a wrapped token bundle

Example

const contents = await contract.getWrappedContents(wrappedTokenId);
console.log(contents.erc20Tokens);
console.log(contents.erc721Tokens);
console.log(contents.erc1155Tokens);

Signature:

getWrappedContents(wrappedTokenId: BigNumberish): Promise<WrappedTokens>;

Parameters

ParameterTypeDescription
wrappedTokenIdBigNumberishthe id of the wrapped token bundle

Returns:

Promise<WrappedTokens>