Function coreledger_backend::int_set_price
pub async fn int_set_price(
fee_type: u8,
unique_asset_id: UniqueAssetId,
fee_amount: u256,
wallet: Principal
) -> Response
Expand description
The only price administered at the moment in the system is the price for creating a supply.
The function can be used to set the destination wallet, too.
§Parameters
fee_type
: A byte for indicating the type of pricing (at the moment 0x01 = supply creation).unique_asset_id
: The currency in which the fee has to be paid.fee_amount
: Amount of tokens.wallet
: Destination address of the fee.
§Result
tx_id
: Id of the transaction.
§Sample request
SUPPLY_CREATION_FEE_TYPE=0x01
UNIQUE_ASSET_ID=0xF94E2AD9DD5CBBC041430001
FEE_AMOUNT=10
PRINCIPAL='principal "dimdt-vwpm3-tkwgu-c2nkv-txykr-atn2x-xras5-6xidt-wtti3-i4xr6-vqe"'
dfx canister call coreledger_backend int_set_price "($SUPPLY_CREATION_FEE_TYPE, $UNIQUE_ASSET_ID, $FEE_AMOUNT, $PRINCIPAL)"
§Sample response
( record {
tx_id = 64_902_045_878_680_215_161_103_406_576_570_366_475_824_533_393_005_533_149_888_825_789_042_550_227_580 : nat
})