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

Response

200
application/json

Successfully created wallet

The response is of type object.