doRemoveToken

Updated : 2024.05.23

pERDL -> CURIO (On Game Mode) 으둜 λ³€ν™˜ν•˜λŠ” 역할을 함. [Only Relay Admin]

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

Parameters

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

AddAndRemoveTokenRequest

_request

request λ°°μ—΄

AddAndRemoveTokenRequest.address

tokenContract

토큰 μ»¨νŠΈλž™νŠΈ μ£Όμ†Œ

AddAndRemoveTokenRequest.string

messageId

λ©”μ‹œμ§€ 고유 ID

AddAndRemoveTokenRequest.uint256

amount

토큰 μˆ˜λŸ‰

AddAndRemoveTokenRequest.string

ownerUid

μ‚¬μš©μž uid

AddAndRemoveTokenRequest.uint256

txFee

tx 수수료

Example

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

2023.05.23

Last updated