Skip to content

WIP Intro to accounts and txs pages#206

Draft
evanorti wants to merge 6 commits intomainfrom
accounts
Draft

WIP Intro to accounts and txs pages#206
evanorti wants to merge 6 commits intomainfrom
accounts

Conversation

@evanorti
Copy link
Contributor

Intro pages to accounts and txs, msgs, and queries. These are part of the new intro section.

These need further revision and working before merging

@evanorti evanorti changed the title Intro to accounts and txs pages WIP Intro to accounts and txs pages Feb 13, 2026

## What is an account

An account is a container for a user's balances and a way to authorize transactions.
Copy link

@technicallyty technicallyty Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An account is a container for a user's balances

this statement technically isn't correct.. although, conceptually probably not bad to think about it this way. accounts really only have this saved:

type BaseAccount struct {
	Address       string     `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PubKey        *anypb.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	AccountNumber uint64     `protobuf:"varint,3,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
	Sequence      uint64     `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
}

x/bank is the one that stores balances, it does so by mapping address-denom -> balance

if it's not meant to be technically accurate, its likely fine. but just thought i'd flag.


An address is not the same thing as a public key. The address is derived from the public key, but it does not reveal the public key directly.

When an account receives tokens for the first time, only the address is needed. The chain can credit balances to that address without knowing the public key.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the first time

seems to imply that this is not the case after the first time 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants