pub async fn led_amen_create_amendment(
    contract_id: ContractId,
    asset_id: AssetId,
    hash: Nat
) -> Response<AmendmentId>
Expand description

Creates an amendment for an already existing asset. Restricted to the issuer.

§Parameters

  • contract_id: Contract id of the ledger.
  • asset_id: Locally unique asset identifier (needs ledger to be globally unique).
  • hash: Keccak256 hash of the documentation.

§Result

  • tx_id: Id of the transaction.
  • data: Id of the created amendment.

§Sample request

LEDGER_CONTRACT_ID=1_376_994_832_725_996_537_612_682_825_051_864_610_558_585_037_795
ASSET_ID=0xF94E2AD9DD5CBBC04143
AMENDMENT_HASH=0x54321

dfx canister call coreledger_backend led_amen_create_amendment "($LEDGER_CONTRACT_ID, $ASSET_ID, $AMENDMENT_HASH)"

§Sample response

( record {
  tx_id = 55_825_671_938_690_166_183_429_479_010_341_159_573_748_859_433_936_148_528_975_497_572_634_448_759_812 : nat;
  data = 156_384_428_531_995_775_716_355_670_017 : nat;
})