Token Operations

Mint Tokens

use onemoney_protocol::{TokenMintPayload, Authority};

// Mint tokens
let mint_payload = TokenMintPayload {
    recent_epoch: state.epoch,
    recent_checkpoint: state.checkpoint,
    chain_id: 1212101,
    nonce: 1,
    token: token_address,
    recipient: recipient_address,
    value: TokenAmount::from(1000000000000000000u64), // 1 token
};

let result = client.mint_token(mint_payload, private_key).await?;

Last updated