Skip to content

Instantly share code, notes, and snippets.

{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"address": "0x9851d050a3db9388628cd3da22944a10248a4f3b",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000bc9483ad1b36564dd72173b2c729de7d25191aad",
"0x000000000000000000000000bc9483ad1b36564dd72173b2c729de7d25191aad",

API Documentation

1. Associated Wallets API

Endpoint:
POST /

Description:
Checks one or more assets by denom or address to determine their properties and relationships.

{
"tx": {
"body": {
"messages": [
{
"@type": "/seiprotocol.seichain.evm.MsgEVMTransaction",
"data": {
"@type": "/seiprotocol.seichain.eth.LegacyTx",
"nonce": "478",
"gas_price": "1320000000",
{
  "block_id": {
    "hash": "6549342B131D7ACB7D67D458CD6A5EF7169A2B45197FF8B7891C1A9A404E9A57",
    "parts": {
      "total": 1,
      "hash": "00593F86037C3E28F1A1D52BAAA76431B45DA08EF368D85B1F2F650F9695047C"
    }
  },
  "block": {

Simple Sei Network Helper Functions

Environment variables, aliases, and scripts to simplify basic operations on the Sei network.


Environment Variables

Set these variables in your .bashrc or .bash_profile:

Summary of key changes and features added to create the "in-place-testnet" function:

1. Validator Initialization

  • Purpose: Sets up a new testnet validator with custom parameters.
  • Changes:
    • Constructs a new stakingtypes.Validator with:
      • OperatorAddress generated using Bech32 conversion.
      • ConsensusPubkey initialized with the provided public key.
      • Parameters for Tokens, DelegatorShares, Description, Commission, and MinSelfDelegation.
    • Removes existing validators by clearing validator-related stores:
commit 5bff2163b81a0ef5d7ef99adaaab5ebe8dae013d
Author: Adam Tucker <[email protected]>
Date: Fri May 24 14:16:37 2024 -0600
feat: sdk v0.50.x upgrade (#8274)
* initial push
* delete
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
import { JsonRpcProvider, Wallet, Contract } from 'ethers';
import dotenv from 'dotenv';
dotenv.config();
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
{
"header": {
"chain_id": "pacific-1",
"timestamp": "2024-12-22T17:12:21Z"
},
"data": {
"height": "122068625",
"txhash": "\u000b��\u000f~�\u0017qD�\u0000�@D�=��\u00014��\u0005\u0017������~����\u0010N��w�;\u000b~�",
"codespace": "sdk",
"code": 45,