02Sheet 02.03.115 · Entries

ALLOW_TRUST with a 12-character asset code

AllowTrustOp.asset is an AssetCode union whose arm here is ASSET_TYPE_CREDIT_ALPHANUM12 with XPFLONGCODE1.

FIG. · Where it sits · inside LedgerCloseMetapre-cap · H-B12 · H-B9
AllowTrustOp.asset as a 12-character code
alphanumeric-12 code in AllowTrust

The shape

AllowTrustOp.asset is an AssetCode union whose arm here is ASSET_TYPE_CREDIT_ALPHANUM12 with XPFLONGCODE1. SEP-0051 JSON renders the union as the bare code string, so the arm shows only in the string's length (5 to 12 characters is alphanum-12).

Variants

VariantProtocolNetworkSourceSizesha256
p30-mainnet-generatedP30mainnet passphrasegenerated by stellar-core v30.0.0
change order varies: 20 orderings in 20 runs
21,176 B0ec4a1c8d0a2…
p30-testnet-generatedP30testnet passphrasegenerated by stellar-core v30.0.0
change order varies: 2 orderings in 2 runs
21,176 B38004ed92e2d…

What a correct reader returns

A correct reader findsValueBacked by
The asset code is the 12-character XPFLONGCODE1, rendered as a bare string.
p30-mainnet-generated
XPFLONGCODE1constructionsnapshotcorewalker
The asset code is the 12-character XPFLONGCODE1, rendered as a bare string.
p30-testnet-generated
XPFLONGCODE1constructionsnapshotcorewalker
Operation 0 succeeds.
p30-mainnet-generated
successsnapshotcorewalker
Operation 0 succeeds.
p30-testnet-generated
successsnapshotcorewalker

Check it yourself

make verify   # schema, hashes, the byte-for-byte round trip and every fact above
make oracle   # the facts' values, re-read by stellar-core and the schema walker

Entry id max-length.allow-trust-alphanum12 · compiled from catalog/max-length.allow-trust-alphanum12.json · entry.json

On this page