Questions tagged [palletid]
The palletid tag has no usage guidance.
Token(CannotCreate) error on transferring asset to PalletId account
I'm new to Substrate and I'm creating a pallet in which the user can create contests by depositing a certain amount of assets. My idea is to send that amount to the PalletId account, but I'm having an ...
How to choose a Lock Identifier?
In my pallet, I am writing a function that checks if a user has some minimum amount of free balance, and if they do, proceed with the transaction by locking a DepositFee amount. I found that set_lock ...
How can we get a Pallet's Sub-Account Address using PolkadotJS API
We have a pallet which has their own account e.g *b"replace_" and we are able to generate sub accounts addresses like so: let sub_account: T::AccountId = T::PalletId::get().into_sub_account((...
How can we be sure that a Pallet-account/address is unique in a chain and no one else in the chain can replicate the same address?
In Ethereum, the contract address/account isn't formed trivially from a cryptographically-generated private-public key pair, but rather by using a separate method, as described here. In Substrate, ...