Skip to main content

Questions tagged [palletid]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers

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 ...
Pablo Lopes's user avatar
4 votes
1 answer

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 ...
Purple_Turtle's user avatar
11 votes
1 answer

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((...
moolimike's user avatar
  • 345
6 votes
1 answer

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, ...
Asmita Dhungana's user avatar