如何使用 devnet 上全节点的公共 rpc 端点来上传合约,而无需自己运行全节点。 How to use public rpc endpoints of full nodes on devnet to upload contracts without needing to run a full node yourself.
Public Endpoint for sei-devnet-1 sei-devnet-1 的公共端点
tcp://54.67.88.181:26657
export ENDPOINT=tcp://54.67.88.181:26657
export CHAIN_ID=sei-devnet-1
The crucial step in this runbook is to use the --node flag in the seid command and point that to a public rpc endpoint.**``
本 Runbook 中的关键步骤是在 seid 命令中使用 --node 标志并将其指向公共 rpc 端点。
1.安装Seid工具 (Install Seid Tool)
Clone the sei-chain repo, make install and make sure the seid tool and cli is installed properly. Also make sure the seid tool is accessible by adding it to $PATH. This DOES NOT require running a full node on any network
This should create a new account locally and display its address and mnemonic:
这应该在本地创建一个新帐户并显示其地址和助记词:
- name: $ACCOUNT_NAME
type: local
address: sei1ep9jyk9kydjz0fhadm7rzy6pc9ga7tdt4d26xn
pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"Ai3obIQZXAmdgDSw7p1awFIPGK9b7cu/SfJM6nbc+hV/"}'
mnemonic: ""
**Important** write this mnemonic phrase in a safe place.
It is the only way to recover your account if you ever forget your password.
some mnemonic words some mnemonic words some mnemonic words some mnemonic words some mnemonic words
Store the shown account address into local env variable and add it as the genesis account to the chain:
3.向您的帐户注资 (Fund your account)
Use the devnet faucet (on Discord) to fund your account. It may be possible that your account needs more funds, in which case please reach out to our team on Discord.
Build the image. Note that the following steps are run from your contract directory, so they assume seid is in your $PATH. This should generate a .wasm file
NOTE: The following steps for uploading a contract may require more sei in your account than is attainable via faucet. Please reach out to our team over Discord if there are issues with balances.
注意:以下上传合约的步骤可能需要您帐户中的 sei 比通过 faucet 获得的更多。如果有余额问题,请通过 Discord 联系我们的团队。
Henceforth, once your Contract has been uploaded, please follow the instructions under Deploy a generic contract to interact (instantiate, execute, etc). CRUCIALLY, all commands must be accompanied by the --node $ENDPOINT flag which allows sending in tx's to public endpoints on devnet.