POST
/
v2
/
create_local_wallet
curl --request POST \
  --url http://127.0.0.1:9550/v2/create_local_wallet \
  --header 'Content-Type: application/json' \
  --data '{
  "network": "BaseSepolia",
  "role": "Payment"
}'
{
  "address": {
    "address_id": "<string>",
    "network_id": "BaseSepolia",
    "public_key": "<string>",
    "wallet_id": "<string>"
  },
  "id": "<string>",
  "network": {
    "chain_id": 1,
    "display_name": "<string>",
    "id": "BaseSepolia",
    "is_testnet": true,
    "native_asset": {
      "asset_id": "<string>",
      "contract_address": "<string>",
      "decimals": 1,
      "network_id": "BaseSepolia"
    },
    "protocol_family": "Evm"
  },
  "provider_url": "<string>",
  "wallet_private_key": "<string>"
}

Generate a new local cryptocurrency wallet within the Shinkai system.

Body

application/json
network
enum<string>
required

Enum representing the ID of the blockchain network.

Available options:
BaseSepolia,
BaseMainnet,
EthereumSepolia,
EthereumMainnet,
ArbitrumSepolia,
ArbitrumMainnet,
Anvil
role
enum<string>
required

Enum to represent different wallet roles. Useful for the API.

Available options:
Payment,
Receiving,
Both

Response

200
application/json
Successfully created wallet
address
object
required

Represents an address in a wallet.

id
string
required
network
object
required

Represents a blockchain network.

provider_url
string
required
wallet_private_key
string
required