Skip to main content
POST
/
tenant
/
{tenantId}
/
wallets
/
create
Creates a new externally owned account (EOA) wallet for a tenant.
curl --request POST \
  --url https://api.example.com/tenant/{tenantId}/wallets/create \
  --header 'Content-Type: application/json' \
  --data '
{
  "tenantId": 1024,
  "walletName": "My Wallet",
  "walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
  "blockchainId": 137
}
'
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Path Parameters

tenantId
integer<int64>
required

Identifier of the tenant.

Body

application/json

Request containing wallet creation details.

Request to create a new externally owned account (EOA) wallet.

tenantId
integer<int64>

Identifier of the tenant that will own the wallet.

Example:

1024

walletName
string

Name to assign to the wallet.

Example:

"My Wallet"

walletAddress
string

Blockchain address of the wallet.

Example:

"0x1234567890abcdef1234567890abcdef12345678"

blockchainId
integer<int64>

Identifier of the blockchain network where the wallet exists.

Example:

137

Response

200 - application/json

Wallet created successfully.

Wrapper for API operation results containing success status, error information, and return value.

isSuccess
boolean

True if the operation completed successfully, false otherwise.

Example:

true

isFailure
boolean

True if the operation failed, false otherwise.

Example:

false

error
object

Error information returned when the operation fails.

Example:
{
"code": "ValidationError",
"message": "The request parameters failed validation.",
"info": [
"The Name field is required.",
"The Id field must be greater than 0."
]
}
value
object

The result value returned when the operation is successful.

Example:
{
"id": 2048,
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
"blockchainId": 137
}