FAQ
A list of frequently asked questions can be found below. If you still can't find the answer to your question below, please follow up on Discord
Yes, multisig accounts are natively supported. Here is a simple example of how you can set up a multisig account:
// Create 2 accounts
seid keys add ms1
seid keys add ms2
// Create a multisig account requiring the above 2 accounts
seid keys add ms1ms2 --multisig-threshold=2 --multisig=ms1,ms2
For all the Sei provided public nodes, we have set a maximum gas of 300,000. If your contract requires more gas, you will need to set up your own node and rpc url.
@sei-js/core has create a helper function to get this configuration. You can suggest a chain by using the exported
suggestChain
function.import { stringToPath } from '@cosmjs/crypto';
const hdPathStr = "m/44'/118'/0'/0/0"; // the number after the last slash is the account index you want
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(YOUR_SEED_PHRASE, {
prefix: 'sei',
hdPaths: [stringToPath(hdPathStr)] as any
});
// Now your wallet can be used with other @sei-js helper functions
const client = await getSigningCosmWasmClient(RPC_URL, wallet);
Last modified 11d ago