doAddToken

Updated : 2024.05.23

CURIO (DB) -> pERDL (Contract) 으둜 λ³€κ²½ν•˜λŠ” μ—­ν•  [Only Relay Admin]

function doAddToken(
    AddAndRemoveTokenRequest[] memory _request,
) external onlyRelayAdmin

Parameters

struct AddAndRemoveTokenRequest{
    address tokenContract;
    string messageId;
    uint256 amount;
    string ownerUid;
    uint256 txFee;
}

Example

await manageTokenRouterContract.doAddToken(
        [{tokenContract:tokenContract.address,
        messageId:"1234", 
        ownerUid:uid1, 
        amount:ethers.utils.parseEther("100"),
        txFee:ethers.utils.parseEther("100")}]
);

2023.05.23

Last updated