Personal access and Record preparation

Sign in without an App, register a wallet-owned DID, and check the prerequisites for standing storage and Record preparation.

Use the Homebrew CLI release and the Cloud environment supplied for your App. If you already have a finalized contribution, go directly to issue a Record from an anchored CF.

Before a staging trial

Decide who will submit the anchor, authorize the Record, pay for storage, and receive the initial shares. For a new agent to repeat the full trial, supply the following access and decisions. Keep credentials in the execution environment and share only public identifiers in the handoff.

StepHave ready before starting
Anchor a new contributionA synthetic payload, its schema, and an App/profile and Task approved for that submission. The anchoring tutorial uses a shared staging App. Save the finalized CF ID and exact payload bytes. To continue an existing CF, reuse those inputs.
Access the issuing AppA separate profile for the enrolled Cloud App with app:write for staging/intake and app:read for status. Verify the decimal App ID with xny whoami. Get its on-chain App ID, the Base Sepolia RPC and reviewed RecordRegistry proxy from the deployment operator.
Authorize issuanceAn active, unpaused Producer Actor bound to the issuing App, its DID, current controller address and epoch. For an autonomous EOA run, provision a dedicated staging signer the agent can call for message signatures and transactions. Fund it with Base Sepolia ETH for gas. Verify controller authority with Actor inspection. For operator-held wallets, schedule the controller to sign the intake request and execute the previewed issuance transactions.
Fund the retention periodAn active service covering the exact issuing chain App, Producer and production context. If these change, inspect the service scope and open a matching service where needed. The payer independently consents to the service account, scope and terms. Use the authorized personal profile for payer consent, opening and inspection; use the issuing App for intake. See standing storage.
Publish evidence of rightsGet approval for the rights document for the actual CF and payload. Arrange for an authorized gateway operator to publish its exact bytes and return the confirmed URI and Keccak-256 hash. Budget time for confirmation before starting the expiring uploads.
Allocate the initial sharesSpecify every beneficiary wallet and its units. A beneficiary can differ from the Producer controller and the payer. The single-holder example assigns all 1000000000000000000 units to the approved beneficiary.

Check the payer's available byte-seconds after existing reservations. Cloud reserves the total bytes of the retained payload objects and their content manifest, multiplied by the agreed retention period in seconds. For example, 466 retained bytes for one day require 40,262,400 byte-seconds (466 × 86,400). The service status shows whether the agreement is active, and cumulative allocations show how much quota has ever been granted. Cloud checks the remaining quota at intake. If it is insufficient, have the payer or quota administrator fund the same account before retrying.

CLI capabilities

CapabilityCommandRequired provider and boundary
Personal Cloud sign-inxny loginCloud device sign-in and a user account; no App required
Inspect an existing DIDxny identity inspect --did-id IDConfigured chain and DID registry reader; reports the current owner without proving your control
Register a personal DIDxny identity register prepare/submit/statusPersonal session, admitted direct registrar and an externally owned account (EOA) on Base Sepolia
Preview an execution accountxny identity previewPersonal session and configured chain readers for the selected EOA, ERC-1271 owner or DID-bound account
Inspect an existing Actorxny actor inspect --actor-id ID [--account ADDRESS]Personal session and admitted configured Actor registry; one pinned block, no control assertion
Open and inspect standing storagexny record storage-service prepare/open/inspectPersonal session, admitted storage provider, exact payer consent and current Producer controller proof
Validate Record source/allocation filesxny record inspect-manifestsLocal files only; no login, network, storage or deployed contract required
Prepare Record storage through intakexny record stage-inputs, prepare-intake-authorization, admit-intake-authorization, then submit-intakeEnrolled Cloud App, external Producer signature admitted for the exact intake, opened storage service and prepaid quota
Inspect a retained personal/Actor operationxny operation status assetop_IDPersonal session and matching Cloud status reader; the originating user can query
Query indexed production evidencexny query provenance objectsApp read credentials or a user session with App context, plus an admitted Indexer reader

1. Use a matching CLI and sign in

Use xny version to confirm v0.2.18 or later. For personal flows, sign in to the Cloud base URL provided for your environment:

unset XNY_API_KEY XNY_API_URL
xny login --url "$XNY_CLOUD_URL"
xny whoami

login opens a browser device-sign-in flow; --no-browser prints the URL for use on another device. The resulting user token is saved in the OS keychain. Do not put the token in a command argument or XNY_API_KEY: that variable is reserved for an App API key and overrides saved credentials.

Cloud sign-in, a DID, a wallet/account and a business Actor are separate identities. Signing in neither creates a DID nor proves control of its owner account. Selecting an App is needed for App-scoped queries, not personal reads. Changing an existing profile to a different normalized URL clears its credential and App selection; sign in again for the new host.

2. Register or inspect a DID

Check registration support with xny identity register. A deployment without an admitted personal registrar returns FEATURE_UNAVAILABLE. On a compatible Base Sepolia deployment, prepare a registration for your own externally owned account (EOA):

xny identity register prepare --account "$WALLET" --idempotency-key "$KEY"

Sign the returned challenge in that wallet and submit the signature with the same key. Save the returned operation ID before sending the prepared transaction from the wallet. After chain finality, attach the transaction hash and reconcile the operation. The finalized receipt contains your new DID. Follow the registration command reference for the exact signing and recovery commands.

Read back the new DID, or inspect any existing DID:

xny identity inspect --did-id "$DID_ID" --output json

This reads the configured registry's current owner. It reports controlVerified: false. registrationSupported is a deployment capability reported separately. For account selection and unsigned execution preview in EOA, ERC-1271 or DID-bound account mode, see the execution preview CLI guide.

To inspect a beneficiary link or manage it through external wallets, see the beneficiary association commands.

3. Inspect an existing Actor

xny actor inspect --actor-id "$ACTOR_ID" --output json
xny actor inspect --actor-id "$ACTOR_ID" --account "$ACCOUNT" --output json

Cloud must configure the admitted Actor registry for the expected chain. The Actor ID and optional account are canonical lowercase nonzero values. Omitting --account returns no selected-account authority; it never silently selects the owner. The result separates Actor/DID, current owner, roles, epoch, permanent Producer/App binding and pause from the optional owner/Operator account. All reads share one canonical block (latest-pinned), not finalized evidence. controlVerified: false means inspection does not prove your control or grant permission. For registration, role changes and operator management by the current DID owner, see the Actor workflows.

4. Check Record manifests offline

xny record inspect-manifests \
  --sources sources.json \
  --allocations allocations.json \
  --total-units "$EXPECTED_TOTAL_UNITS" \
  --output json

The files are ordered source and allocation arrays. The command rejects duplicates, invalid units, incorrect totals and incorrect ordering, and computes the reviewed v1 commitments without sorting or rewriting the inputs. The total is supplied by you; it is not verified against deployed token supply.

The result explicitly reports authorityVerified: false, sourcesVerified: false and storageReady: false. It does not upload content, sign an authorization, reserve a storage service or create an asset. Use the manifest format guide for exact JSON fields, bounds and commitment rules.

5. Inspect a retained operation

When an owning workflow returns a personal/Actor operation ID, retain that ID:

xny operation status "$OPERATION_ID" --output json
xny operation status "$OPERATION_ID" --wait --timeout 2m --output json

These personal examples require an ID beginning with assetop_. No App key or App selection is needed. Querying does not submit or resume work. A successful query can contain data.outcome: failed; that is a failed business operation, not a failed query. A bounded wait timeout exits with code 3 and retains the operation/known transaction correlation. Default text includes the actual outcome and finality. Legacy executor job IDs retain their App-scoped behavior. See the operation status guide for error and exit semantics.

6. Open storage for the responsible production context

A Producer must be permanently bound to its registered App. Use the exact Campaign or other supported production object that is responsible for the Record. The responsible production context bears the cost and an App may pay on its behalf with separate payer authorization. Registration and storage consent are separate steps.

For generic production, see the Production registration guide and the workflow to register contexts and accepted CF evidence.

Follow the standing storage workflow with a personal profile. The current Producer controller signs for the exact scope covered by the actual payer's consent. Keep the storageServiceRef and check record storage-service inspect for the accepted scope, payer and standing eligibility.

Use the authorized App for Record intake. Input staging provides upload receipts. Prepare the authorization for that exact intake, have the Producer sign externally, and admit the proof before submitting. Intake ready means Cloud verified storage readback for the retained manifest. Active Record ownership requires verified on-chain issuance.

The provenance query command reads indexed accepted production evidence. It does not produce or accept CFs, enforce Campaign quality rules, or verify a Record manifest's source rights. Without an admitted canonical reader the deployment returns an explicit unavailable/not-indexed result. Staged content, manifest commitments and status records do not establish active ownership.

The maintained English onboarding guide and Chinese onboarding guide track the remaining integrations and current command contracts.

Issue a Record from an anchored CF

This example uses the finalized CF ID and original payload from the staging anchoring tutorial. One source contributes to one Record and one holder receives all 1000000000000000000 initial units.

Collect the environment and rights evidence

Complete the staging trial prerequisites. Have the confirmed rights URI and hash and the Producer signer ready. Switch from the anchor profile to the issuing App. Unset any overriding demo key and URL; then have your secret manager feed the issuing key to this command on stdin:

xny login --with-key --profile record-issuer --url "$XNY_CLOUD_URL"
export XNY_PROFILE=record-issuer
xny whoami

Check the returned App ID against the enrolled issuing App before staging.

Stage the payload and manifests

Set CF_ID to the finalized CF ID, RIGHTS_HASH and RIGHTS_URI to the confirmed rights evidence, HOLDER to the approved initial wallet address and SCHEMA_REF to the schema reference for the original payload. Set PAYLOAD to the path of that original sample. Use a fresh private directory for each intake and retain it through activation.

umask 077
mkdir -m 700 record-stage record-authorization
jq -n --arg cfId "$CF_ID" --arg sourceRightsHash "$RIGHTS_HASH" \
  --arg sourceRightsUri "$RIGHTS_URI" '[{$cfId,$sourceRightsHash,$sourceRightsUri}]' > sources.json
jq -n --arg holderAccount "$HOLDER" '[{$holderAccount,units:"1000000000000000000"}]' > allocations.json
xny record stage-inputs --content "$PAYLOAD" --schema-ref "$SCHEMA_REF" \
  --sources sources.json --allocations allocations.json --total-units 1000000000000000000 \
  --file record-stage/stage.json --output json

After a transient error or a quota top-up, resume from the same private state and inputs while the admissions and authorization remain valid. Preserve the operation ID of any acknowledged submission. Before resuming, check the upload expiries, terms deadline and current controller epoch. Expired uploads require a fresh stage file, new references and a fresh intake signature; changed terms or authority require fresh authorization. Check the original operation before creating a replacement after an ambiguous submission.

Prepare the terms and request a signature

The Producer chooses a unique Record reference (nonzero lowercase bytes32), fresh nonce, voting period in seconds, notice period in seconds, and a future deadline (Unix seconds). Export these as RECORD_REF, NONCE, VOTING_SECONDS, NOTICE_SECONDS and DEADLINE. Export PRODUCER_ID and CHAIN_APP_ID (lowercase bytes32), CONTROLLER (lowercase address) and CONTROLLER_EPOCH from the current deployment. The chain App ID differs from the Cloud App's decimal ID. Use the saved upload commitments to assemble all sixteen string fields:

jq '.manifests + {
  producerActorId:env.PRODUCER_ID, appId:env.CHAIN_APP_ID, producerRecordRef:env.RECORD_REF,
  contentHash:.uploads.object.keccak256, contentManifestHash:.uploads.manifest.keccak256,
  controllerEpoch:env.CONTROLLER_EPOCH, resolvedControllerAddress:env.CONTROLLER,
  nonce:env.NONCE, deadline:env.DEADLINE, recordVotingPeriodSeconds:env.VOTING_SECONDS,
  recordNoticePeriodSeconds:env.NOTICE_SECONDS
}' record-stage/stage.json > issue-terms.json
xny record inspect-issue-terms --terms issue-terms.json --chain-id "$CHAIN_ID" \
  --registry "$REGISTRY" --output json > terms-result.json
RECORD_ID=$(jq -er '.data.recordId' terms-result.json)
xny record prepare-intake-authorization --stage-file record-stage/stage.json \
  --terms issue-terms.json --storage-service-ref "$STORAGE_SERVICE_REF" --chain-id "$CHAIN_ID" \
  --file record-authorization/intent.json --output json

For an EOA, the controller reviews the intake and signs its 32 raw actionHash bytes with personal_sign. Return the hex signature through a private channel and store it in record-authorization/signature.txt with mode 0600.

xny record admit-intake-authorization --file record-authorization/intent.json \
  --signature-file record-authorization/signature.txt --output json
xny record submit-intake --file record-authorization/intent.json --output json

Issue, resume and verify

Export XNY_RPC_URL for the chain checked above. Preview the next wallet call:

xny record issue --file record-authorization/intent.json --sources sources.json \
  --allocations allocations.json --registry "$REGISTRY" --output json

The preview first waits for the signed storage receipt. Review the sender, target, chain, calldata and Record ID before executing. An operator with the authorized wallet can send the exact previewed transaction externally. An authorized CLI wallet can instead add --submit to the same command. Repeat the preview after each mined transaction: begin the Record, append sources, append allocations, then activate. A larger manifest can require multiple pages. Keep the original files and use the same command after an interruption.

xny record intake-status --file record-authorization/intent.json \
  --wait-for-activation --timeout 2m --output json
xny record members --record-id "$RECORD_ID" --chain-id "$CHAIN_ID" \
  --registry "$REGISTRY" --output json

On a timeout repeat the status query for the same intake. Check for finalized and active. Confirm that the finalized member read reports the expected CF ID and rights hash as its sole source, and the intended wallet and unit count as its sole allocation. Retain the operation ID, Record ID, activation transaction hash and finalized read block as acceptance evidence.

Last updated