> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# RAILGUN Create Wallet

Generate a new RAILGUN wallet with a fresh mnemonic and derive its 0zk address. Returns the mnemonic (KEEP SECURE!) and RAILGUN address. Ideal for: user onboarding, wallet provisioning, testing, automation workflows.

![RAILGUN Create Wallet logo](https://cdn.b3.fun/b3os-icons/railgun.png)
Catalog action Wallet Management

Generate a new RAILGUN wallet with a fresh mnemonic and derive its 0zk address. Returns the mnemonic (KEEP SECURE!) and RAILGUN address. Ideal for: user onboarding, wallet provisioning, testing, automation workflows.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `railgun-create-wallet` |
| Category | Wallet Management |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `railgun`, `privacy`, `wallet`, `create`, `mnemonic` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `encryptionKey` | `string` | No | Optional: Encryption key for securing the mnemonic. If provided, the mnemonic will be encrypted. |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `mnemonic` | `string` | Yes | Generated RAILGUN wallet mnemonic \(12 words\). KEEP THIS SECURE! |
| `railgunAddress` | `string` | Yes | The RAILGUN 0zk... address derived from the mnemonic |
| `encryptedMnemonic` | `string` | No | Encrypted mnemonic \(only if encryptionKey was provided\) |

## Examples

**Workflow node**

```json
{
  "type": "railgun-create-wallet",
  "payload": {
    "encryptionKey": "example-encryptionKey"
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/railgun-create-wallet/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "encryptionKey": "example-encryptionKey"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.