CLI walkthrough, part 2 of 3
Issue a regulated asset
Set an asset’s rules, then watch the chain refuse every transfer that breaks them.
You play the issuer: you register an asset only KYC'd holders may hold, and set its rules. An attestor, normally a KYC provider, vouches for accounts. On devnet the Arxium devnet attestor does this from the Console. The chain checks the rules on every transfer, so no app can skip them. It takes about ten minutes.
Before you start
- The quickstart done:
arx0.6.0 or later (arx --version), and your Console key holding test ARX. ARX_RPC,ARX_TOKENandARX_KEYset in your shell, as in the quickstart.- A second Console account, which plays the holder in step 3.
0. Get attested in the Console
The rules apply to both ends of every transfer, so the issuer needs an attestation too. In the Console, open Faucet, complete the security check under Verify yourself on the chain and click Get attested. The devnet attestor attests your Console key's address with the KYC and AML claims. The card says Attested, with the attestor's name, once the grant is in a block.
ISSUER=arx1... # your Console key (ARX_KEY) curl -s -H "Authorization: Bearer $ARX_TOKEN" $ARX_RPC/accounts/$ISSUER# {…, "identity_hash":"…", "attested_by":"arx1…", "claims":["Kyc","Aml"], "jurisdiction":null, …}1. Register the asset
# <asset-id> <symbol> <name> <decimals> [required claims] [allowed jurisdictions]arx send register-asset fund-a FUNDA "Fund A" 0 kyc ASSET=$(curl -s -H "Authorization: Bearer $ARX_TOKEN" \ $ARX_RPC/assets/alias/$ISSUER/fund-a | jq -r .ref)echo $ASSET # arxasset1...The asset's chain-wide reference, arxasset1…, is derived from your address and the id you chose. Two issuers can both use fund-a without colliding. Claim topics are kyc, aml, accredited and jurisdiction. Jurisdictions are ISO 3166-1 alpha-2 codes.
2. Issue supply
arx send issue-asset $ASSET 1000The 1,000 units land on the issuer, which is already attested from step 0.
3. Try an unattested holder
Sign in to the Console with a second account, generate its signing key under Settings, and copy its address. Don't click Get attested on it yet. (The holder.json key from the quickstart works for this step too, but only a Console account can be attested from the Console.)
HOLDER=arx1... # the second Console account's key arx send transfer-asset $ASSET $HOLDER 100action dropped: compliance check failed: arx1w86p… is not KYC'd/allowlistedThe holder has no attestation, so the chain drops the transfer. The reason above is the exact text the node returns. It's also in GET /actions/{signature} and in the block's effects.
4. Attest the holder, and the transfer goes through
In the second account, click Get attested and wait for Attested. Then send again:
arx send transfer-asset $ASSET $HOLDER 100 # "status": "confirmed" curl -s -H "Authorization: Bearer $ARX_TOKEN" $ARX_RPC/accounts/$HOLDER/assets# [{"symbol":"FUNDA", "balance":100, "transfer_eligible":true, "eligibility_reason":"eligible", …}]Wallets can check eligibility_reason before sending. It reports the sender-side gate that would fail, such as missing_attestation, jurisdiction_not_allowed or holder_frozen.
5. Restrict by country
An attestation can also record the holder's country, and an asset can list the countries allowed to hold it. The devnet attestor doesn't record a country, because it checks no documents. So an asset restricted to, say, Switzerland and Liechtenstein refuses even attested devnet accounts:
arx send register-asset fund-ch FUNDCH "Fund CH" 0 kyc CH,LI# …issue, then transfer from an attested issuer:action dropped: arx1…'s jurisdiction (None) is not among those arxasset1… permitsA new grant replaces the old one completely, so an attestor can also take a claim or a country away by re-attesting.
6. Cap holdings, then freeze
The issuer can change an asset's limits after it's issued, and the next transfer has to meet them. Cap any single holder at 150 units. The holder from step 4 already has 100:
# <max-holders> [max-per-holder] [max-attestation-age-blocks], - = no limitarx send set-asset-limits $ASSET - 150 arx send transfer-asset $ASSET $HOLDER 100action dropped: arx1w86p… would hold 200 of arxasset1…, over the per-holder limit of 150Freezing works on one holder or on the whole asset. A frozen holder can neither send nor receive the asset, whatever its claims say. A frozen asset doesn't move at all. Freezing an asset needs a reason, which is recorded in the block as the audit trail.
arx send freeze-holder $ASSET $HOLDERarx send transfer-asset $ASSET $HOLDER 10action dropped: arx1w86p… is frozen for arxasset1… and may neither send nor receive itarx send unfreeze-holder $ASSET $HOLDER arx send freeze-asset $ASSET "board resolution 2026-10"arx send transfer-asset $ASSET $HOLDER 10action dropped: arxasset1… is frozen: no transfers until it is unfrozenarx send unfreeze-asset $ASSET "resolution lifted"While the holder is frozen, GET /accounts/$HOLDER/assets reports eligibility_reason: "holder_frozen", so a wallet can show why before anyone sends. Only the issuer can do any of this. The same commands from any other key are dropped with only the issuer (…) of arxasset1… may do this.
What else issuers can do
- Lock part of a holder's balance, optionally until a block height.
- Recover a lost holder's position to a new address, which must pass the same checks.
- Move units by court order or sanction with a forced transfer. It skips the compliance checks and needs a recorded reason.
- Do all of this from the Console issuer pages, or in code with the SDK encoders (
encodeRegisterAsset,encodeSetAssetLimits,encodeFreezeAssetand the rest) andArxiumRpc.sendAction.
Attestors themselves are added and removed by a validator vote, and the Explorer names the attestor next to every attestation.