const delegateCommand = await sdk.userLedger?.createDelegateProxyCommand(
exchangeParty!,
treasuryParty!.partyId
)
const delegationContractResult =
await sdk.userLedger?.submitCommand(delegateCommand)
const [acceptCommand, disclosedContracts4] =
await sdk.tokenStandard?.exerciseTransferInstructionChoiceWithDelegate(
transferCid, //incoming transfer
'Accept',
proxyCid!,
featuredAppRights?.contract_id!,
[
{
beneficiary: exchangeParty!,
weight: 1.0,
},
],
featuredAppRights!
)!
//prepare, sign and execute the above command