sendAsset()

Send specified asset to specified user

Parameters

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

Examples

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

Return Types

type ReturnType = SendAssetResponseBody;
pageAsset

Alternatives

pagesend()

Last updated