We generate datum script using below :
cardano-cli transaction hash-script-data --script-data-file ${datum_name}.datum
It generates the datum script. once we have datum we need to incluide it into transaction
that is generated on cli again
cardano-cli transaction build
–alonzo-era
–tx-in ${utxoin}
–tx-out ${SCRIPT_ADDR}+${LOCK_AMNT}
–tx-out-datum-hash ${hashes[0]}
–metadata-json-file metadata.json \
Please let me know how to do above datum using nami-wallet-api?
cardano-serialization-lib-browser