Skip to main content
Use the B20 Asset variant to represent a class of tokenized shares with configurable precision, issuer roles, supply controls, and metadata. This example creates Example Corp Class A (EXM) with six decimals.
Real-world asset (RWA) tokenization is one of many use cases for the B20 Asset standard. The examples on this page use a stock token for illustration; the same flows apply to other asset types.Tokenized securities examples shown for illustration. Base is a general-purpose blockchain; issuance and compliance are the responsibility of the issuer under applicable law.

Demo

The demo above is mock only. If you want to see onchain demos on Vibenet, head to Base chain demos.
New to B20? See the B20 Token Standard for the concepts and a full launch walkthrough. These samples target base-std@v1.0.0, viem@2.55.11, and Base Foundry v1.1.1.

Create and Verify the Stock Token

See the B20 token standard for the complete interface, roles, and policies.
The factory emits B20Created for the Asset variant and returns the deterministic token address.
The supply cap is a technical ceiling, not a representation of authorized or outstanding shares.

See Also

Issue Shares

Mint asset units to holders.

Restrict Eligible Holders

Gate who can hold with policies.