sendAssets()

Send specified assets to specified user

Parameters

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

Examples

const assets = await assetlayer.assets.sendAssets({
    receiver: 'receiverHandle',
    assetIds: ['assetId_1', 'assetId_2']
});

Return Types

type ReturnType = SendAssetsResponseBody;
Asset

Alternatives

send()

Last updated