sendRandomAsset()
Send a random asset from the the specified collection to the specified user
Parameters
export type SendRandomAssetProps = {
receiver: string; // userId or handle of the receiver
collectionId: string;
walletUserId?: string; // specifies walletId if user is an app-owned wallet
}
Examples
const asset= await assetlayer.assets.sendRandomAsset({
receiver: 'receiverHandle',
collectionId: 'collectionId'
});
Return Types
type ReturnType = SendAssetResponseBody;
Last updated