Send specified asset(s) to specified user
export type AssetSendProps = { receiver: string; // userId or handle of the receiver walletUserId?: string; // specifies walletId if user is an app-owned wallet assetId?: string; assetIds?: string[]; collectionId?: string; }
const asset= await assetlayer.assets.send({ receiver: 'receiverHandle', assetId: 'assetId' });
const assets = await assetlayer.assets.send({ receiver: 'receiverHandle', assetIds: ['assetId_1', 'assetId_2'] });
type ReturnType = SendAssetResponseBody | SendAssetsResponseBody;
Last updated 1 year ago