NoRamp Docs
Search
K

Wallets

ENDPOINTS
GET /apps
POST /apps/:app_id
GET /apps/:app_id/:wallet_id
PATCH /apps/:app_id/:wallet_id
DELETE /apps/:app_id/:wallet_id

Create Wallet

POST /apps/:app_id
cURL
Node
Python
1 curl -X POST https://api.noramp.io/wallets/{app_id} \
2 -u API_KEY: \
3 -H 'Content-Type: application/json' \
4 -d '{"managed":false,"wallet_data":{"near":{"network_id":"mainnet","account_id":"account.near","phrase_or_key":"phrase or key"}}}'
--------------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "wal_1hJuiOB3yJldYiDOdA4P6r",
"name": "Testing Wallet",
"type": "near",
"managed": false,
"wallet_data": {
"near": {
"network_id": "mainnet",
"account_id": "account.near"
}
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-09-03T23:14:23.135Z",
"updated_at": "2022-09-03T23:14:23.135Z"
}
}
1 const data = {
2 "managed": false,
3 "wallet_data": {
4 "near": {
5 "network_id": "mainnet",
6 "account_id": "account.near",
7 "phrase_or_key": "phrase or key"
8 }
9 }
10 };
11
12 const response = await fetch('https://api.noramp.io/wallets/{app_id}', {
13 method: "POST",
14 headers: {
15 'content-type': 'application/json',
16 'authorization': 'Bearer {API_KEY}',
17 },
18 body: JSON.stringify(data)
19 })
20
21 console.log('response', await response.json());
------------------------------------------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "wal_1hJuiOB3yJldYiDOdA4P6r",
"name": "Testing Wallet",
"type": "near",
"managed": false,
"wallet_data": {
"near": {
"network_id": "mainnet",
"account_id": "account.near"
}
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-09-03T23:14:23.135Z",
"updated_at": "2022-09-03T23:14:23.135Z"
}
}
1 import requests
2 import json
3
4 url = "https://api.noramp.io/wallets/{app_id}"
5
6 headers = {
7 'Content-Type': 'application/json',
8 'Authorization': 'Bearer {API_KEY}',
9 }
10
11 payload = json.dumps({
12 "managed": false,
13 "wallet_data": {
14 "near": {
15 "network_id": "mainnet",
16 "account_id": "account.near",
17 "phrase_or_key": "phrase or key"
18 }
19 }
20 })
21
22 response = requests.request("POST", url, headers=headers, data=payload)
23
24 print(response.text)
------------------------------------------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "wal_1hJuiOB3yJldYiDOdA4P6r",
"name": "Testing Wallet",
"type": "near",
"managed": false,
"wallet_data": {
"near": {
"network_id": "mainnet",
"account_id": "account.near"
}
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-09-03T23:14:23.135Z",
"updated_at": "2022-09-03T23:14:23.135Z"
}
}

Get Wallet

GET /apps/:app_id/:wallet_id
cURL
Node
Python
1 curl -X POST https://api.noramp.io/wallets/{app_id}/{wallet_id} \
2 -u API_KEY: \
3 -H 'Content-Type: application/json'
-------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "wal_1hJuiOB3yJldYiDOdA4P6r",
"name": "Testing Wallet",
"type": "near",
"managed": false,
"wallet_data": {
"near": {
"network_id": "mainnet",
"account_id": "account.near"
}
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-09-03T23:14:23.135Z",
"updated_at": "2022-09-03T23:14:23.135Z"
}
}
1 const response = await fetch('https://api.noramp.io/wallets/{app_id}/{wallet_id}', {
2 method: "POST",
3 headers: {
4 'content-type': 'application/json',
5 'authorization': 'Bearer {API_KEY}',
6 },
7 })
8
9 console.log('response', await response.json());
--------------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "wal_1hJuiOB3yJldYiDOdA4P6r",
"name": "Testing Wallet",
"type": "near",
"managed": false,
"wallet_data": {
"near": {
"network_id": "mainnet",
"account_id": "account.near"
}
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-09-03T23:14:23.135Z",
"updated_at": "2022-09-03T23:14:23.135Z"
}
}
1 import requests
2 import json
3
4 url = "https://api.noramp.io/wallets/{app_id}/{wallet_id}"
5
6 headers = {
7 'Content-Type': 'application/json',
8 'Authorization': 'Bearer {API_KEY}',
9 }
10
11
12 response = requests.request("POST", url, headers=headers, data=payload)
13
14 print(response.text)
---------------------------------------------------------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "wal_1hJuiOB3yJldYiDOdA4P6r",
"name": "Testing Wallet",
"type": "near",
"managed": false,
"wallet_data": {
"near": {
"network_id": "mainnet",
"account_id": "account.near"
}
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-09-03T23:14:23.135Z",
"updated_at": "2022-09-03T23:14:23.135Z"
}
}

Update Wallet

PATCH /apps/:app_id/:wallet_id
cURL
Node
Python
1 curl -X POST https://api.noramp.io/wallets/{app_id} \
2 -u API_KEY: \
3 -H 'Content-Type: application/json' \
4 -d '{"wallet_data":{"near":{"network_id":"mainnet","account_id":"account.near","phrase_or_key":"phrase or key"}}}'
------------------------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "wal_1hJuiOB3yJldYiDOdA4P6r",
"name": "Testing Wallet",
"type": "near",
"managed": false,
"wallet_data": {
"near": {
"network_id": "mainnet",
"account_id": "account.near"
}
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-09-03T23:14:23.135Z",
"updated_at": "2022-09-03T23:14:23.135Z"
}
}
1 const data = {
2 "wallet_data": {
3 "near": {
4 "network_id": "mainnet",
5 "account_id": "account.near",
6 "phrase_or_key": "phrase or key"
7 }
8 }
9 };
10
11 const response = await fetch('https://api.noramp.io/wallets/{app_id}', {
12 method: "POST",
13 headers: {
14 'content-type': 'application/json',
15 'authorization': 'Bearer {API_KEY}',
16 },
17 body: JSON.stringify(data)
18 })
19
20 console.log('response', await response.json());
---------------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "wal_1hJuiOB3yJldYiDOdA4P6r",
"name": "Testing Wallet",
"type": "near",
"managed": false,
"wallet_data": {
"near": {
"network_id": "mainnet",
"account_id": "account.near"
}
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-09-03T23:14:23.135Z",
"updated_at": "2022-09-03T23:14:23.135Z"
}
}
1 import requests
2 import json
3
4 url = "https://api.noramp.io/wallets/{app_id}"
5
6 headers = {
7 'Content-Type': 'application/json',
8 'Authorization': 'Bearer {API_KEY}',
9 }
10
11 payload = json.dumps({
12 "wallet_data": {
13 "near": {
14 "network_id": "mainnet",
15 "account_id": "account.near",
16 "phrase_or_key": "phrase or key"
17 }
18 }
19 })
20
21 response = requests.request("POST", url, headers=headers, data=payload)
22
23 print(response.text)
------------------------------------------------------------------------------------------------------------------------------------------------
JSON Response:
{
"data": {
"id": "wal_1hJuiOB3yJldYiDOdA4P6r",
"name": "Testing Wallet",
"type": "near",
"managed": false,
"wallet_data": {
"near": {
"network_id": "mainnet",
"account_id": "account.near"
}
},
"app": {
"id": "app_6Up9GoHjp9tiObHtWW9b8s",
"name": "App Name",
"type": "individual",
"status": "active",
"use_explorer": true,
"created_at": "2022-08-03T17:13:36.275Z",
"updated_at": "2022-08-27T20:06:22.000Z",
"kyc_return_url": "https://myapp.com/settings/kyc",
"app_fee": 0
},
"created_at": "2022-09-03T23:14:23.135Z",
"updated_at": "2022-09-03T23:14:23.135Z"
}
}

Delete Wallet

DELETE /apps/:app_id/:wallet_id
cURL
Node
Python
1 curl -X DELETE https://api.noramp.io/wallets/{app_id}/{wallet_id} \
2 -u API_KEY: \
3 -H 'Content-Type: application/json'
1 const response = await fetch('https://api.noramp.io/wallets/{app_id}/{wallet_id}', {
2 method: "DELETE",
3 headers: {
4 'content-type': 'application/json',
5 'authorization': 'Bearer {API_KEY}',
6 },
7 })
8
9 console.log('response', await response.json());
1 import requests
2 import json
3
4 url = "https://api.noramp.io/wallets/{app_id}/{wallet_id}"
5
6 headers = {
7 'Content-Type': 'application/json',
8 'Authorization': 'Bearer {API_KEY}',
9 }
10
11
12 response = requests.request("DELETE", url, headers=headers, data=payload)
13
14 print(response.text)