Observed since 21 Oct, 10:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0xsequence/dapp-client-cli
A standalone CLI wrapper around `@0xsequence/dapp-client` (v3.0.0-beta.12). The CLI uses **redirect mode** and auto-opens redirect URLs in your browser by default. It prints a short redirect summary by default (full URL is optional). State is encrypted
A standalone CLI wrapper around @0xsequence/dapp-client
The CLI uses redirect mode and auto-opens redirect URLs in your browser by default. It prints a short redirect summary by default (full URL is optional). State is encrypted at rest and persisted on disk.
npm install @0xsequence/dapp-client-cli
npx dapp-client-cli --help
You do not need to run ./node_modules/.bin/dapp-client-cli ....
Use npx dapp-client-cli ... (or npm scripts that call dapp-client-cli).
pnpm install
pnpm run build
Create a local .env in the working directory (or export env vars):
WALLET_URL=https://v3.sequence-dev.app
RELAYER_URL=https://dev-{network}-relayer.sequence.app
NODES_URL=https://dev-nodes.sequence.app/{network}
PROJECT_ACCESS_KEY=...
ORIGIN=http://localhost:3000
REDIRECT_PATH=/
DAPP_CLIENT_CLI_PASSPHRASE=...
Notes:
.env is strongly recommended for CLI and agent workflows.ORIGIN + REDIRECT_PATH must be a reachable HTTP URL for redirect flows.~/.sequence/dapp-client-cli/state.enc.npx dapp-client-cli connect --chain-id 137
By default the CLI starts a local listener and auto-opens the redirect URL in your browser. It prints a short redirect summary (instead of the full payload URL). Approve in wallet, then the CLI auto‑resumes and prints the result.
For normal runs, use minimal commands with only required args and keep defaults:
--listen)--open-url)Avoid disabling these for normal flows (--listen=false / --open-url=false), because then you must handle redirect/resume manually.
Disable the listener:
npx dapp-client-cli --no-listen connect --chain-id 137
To disable automatic URL opening:
npx dapp-client-cli --no-open-url connect --chain-id 137
To print the full redirect URL:
npx dapp-client-cli --show-redirect-url connect --chain-id 137
Redirect-required commands should run with escalated permissions in sandboxed agent environments so browser launch works:
connectresumesign-messagesign-typed-datasend-wallet-transactionupgrade-sessionlessadd-explicit-sessionmodify-explicit-sessionpnpm start -- status
pnpm start -- disconnect --keep-sessionless false
pnpm start -- sign-message --chain-id 137 --message "hello"
pnpm start -- send-transaction --chain-id 137 --transactions examples/polygon-native-transfer.json
Mainnet behavior for send-transaction:
pnpm start -- send-wallet-transaction --chain-id 137 --transaction examples/polygon-native-transfer.json
send-wallet-transaction accepts a single transaction object or an array.
If you pass an array, the CLI uses the first item. @currentWallet is supported inside the JSON.
Fee option selection is handled by the wallet.
pnpm start -- resume --url "<redirect-url>"
Edit src/explicit-session.config.ts to configure default explicit session permissions.
Set it to null to disable defaults.
Available presets in src/explicit-session.config.ts:
explicitSessionDefaultsNftArbitrumSepolia (existing)explicitSessionDefaultsPolygonNativeWithFee (new, chain 137)The active export is:
export const explicitSessionDefaults = explicitSessionDefaultsPolygonNativeWithFee
Switch it to explicitSessionDefaultsNftArbitrumSepolia to test Arbitrum Sepolia mint examples instead.
If you need fee token permissions, set:
includeFeeOptionPermissions: true
You can also set this field directly in an explicit-session JSON file passed to:
connect --explicit-session @file.jsonupgrade-sessionless --explicit-session @file.jsonadd-explicit-session --explicit-session @file.jsonsend-transaction supports:
abi or functionSignatureargs (array)@currentWallet — a special token you can use in any args field. The CLI replaces it with the active wallet address before encoding the call.send-wallet-transaction can accept the same JSON. If you pass an array, the CLI uses the first item.
Example in examples/mint-transaction.json:
[
{
"to": "0xD25b37E2fB07f85E9ecA9d40FE3BcF60BA2dc57b",
"abi": "function safeMint(address to)",
"args": ["@currentWallet"],
"value": "0"
}
]
Polygon native transfer example (for explicitSessionDefaultsPolygonNativeWithFee) is in examples/polygon-native-transfer.json.
send-transaction prints the transaction hash plus an explorer URL when available:
{
"txHash": "0x...",
"explorerUrl": "https://..."
}
TransportMode.REDIRECT.DAPP_CLIENT_CLI_NO_OS_NOTIFY=1.send-transaction handles mainnet fees automatically unless you provide --fee-option.Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
oxEnvironment{
"local_name": "ox",
"alias": false,
"peer_metadata": null
} | ^0.9.17 | runtime |
yargsEnvironment{
"local_name": "yargs",
"alias": false,
"peer_metadata": null
} | ^18.0.0 | runtime |
dotenvEnvironment{
"local_name": "dotenv",
"alias": false,
"peer_metadata": null
} | ^17.2.3 | runtime |
undiciEnvironment{
"local_name": "undici",
"alias": false,
"peer_metadata": null
} | ^7.6.0 | runtime |
@0xsequence/dapp-clientEnvironment{
"local_name": "@0xsequence/dapp-client",
"alias": false,
"peer_metadata": null
} | 3.0.0-beta.17 | runtime |
viemEnvironment{
"local_name": "viem",
"alias": false,
"peer_metadata": null
} | ^2.38.0 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^5.9.3 | development |
@types/nodeEnvironment{
"local_name": "@types/node",
"alias": false,
"peer_metadata": null
} | ^25.0.2 | development |
@types/yargsEnvironment{
"local_name": "@types/yargs",
"alias": false,
"peer_metadata": null
} | ^17.0.35 | development |
Source distribution
{
"shasum": "3b6a8e41710ac213b26e4da7a9cfadf79cdf7460",
"tarball": "https://registry.npmjs.org/@0xsequence/dapp-client-cli/-/dapp-client-cli-0.1.3.tgz",
"fileCount": 54,
"integrity": "sha512-63SFuqx9oflaiu6RnAWY5ol6/kNfqxTbwE5D0fQF+ebZUcW11XX7heZKdsULbCRrQzB4T5WN9uZKMk/WgwODLg==",
"signatures": [
{
"sig": "MEYCIQDuKQNsgDYIPoby0fxs35chVZ/YHEMKI7x7H8HUmYjbIQIhAMqK43W+uH0Pozrpoy1h5bM4wdCf95JSOYtIWXgOKy1B",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
}
],
"unpackedSize": 269111
}Observed since 21 Oct, 10:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:762fedef1ae59f11d9b64f889cc0793072cfc47b178f5331435ab2c07b6f53cd