sendCollectionAssets()

Send all assets in the specified collection to the specified user

Parameters

export type SendCollectionAssetsProps = {
    receiver: string; // userId or handle of the receiver
    walletUserId?: string; // specifies walletId if user is an app-owned wallet
    collectionId?: string;
}

Examples

const asset= await assetlayer.assets.sendCollectionAssets({
    receiver: 'receiverHandle',
    collectionId: 'collectionId'
});

Return Types

type ReturnType = SendAssetsResponseBody;
Asset

Alternatives

send()

Last updated