0x0000000000000000000000000000000000001001
The Bank precompile exposes the Bank Module balance for native SEI. It also lets an EVM caller send SEI to a native sei1... address.
Functions
balance() with usei. They do not cover arbitrary Bank Module denominations.
Setup
Query a native SEI balance
Bank Module queries return native SEI inusei, where 1 SEI equals 1,000,000 usei.
Send native SEI to a native address
sendNative() accepts SEI through msg.value. Use an 18-decimal EVM value for the transaction.
Other query methods
The Bank precompile also has the read-only queries below. All of them exceptsupply are available since v6.7.0.
supply(denom) returns the supply of one denomination. totalSupply(pageKey) returns the supply of every denomination, one page at a time. For paginated methods, pass empty bytes (0x) for the first page, then pass the returned nextKey. An empty nextKey means there are no more pages. spendableBalances reverts if acc has no associated Sei address.
BANK_PRECOMPILE_ABI in @sei-js/precompiles@3 does not include spendableBalances, totalSupply, params, denomMetadata, or denomsMetadata. Call them with an ABI fragment: