Closed web3-literally closed 1 year ago
To send assets you concatenate the policy id with the asset name:
const policyId = "abc....";
const name = "TestToken";
const unit = policyId + fromText(name);
const tx = await lucid
.newTx()
.payToAddress("addr...", { [unit]: 1n })
.complete();
I have researched a lot to transfer token by using lucid-cardano, then didn't find reasonable answer yet, please help me how to transfer token by using lucid-cardano package, now in example folder, there is no code for that. Thanks