> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.shimi.cash/api-reference/shimi-api/crypto/fetch-pre-generated-address/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.shimi.cash/_mcp/server. # Fetch Pre-generated Address GET https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/{networkId} Fetch a ready-to-use deposit address on a given network without generating a new one. **Path variable** `networkId` (string, required): network `id` from **List Available Networks**. Returns **all** addresses you have generated on that network, as an array under `data.address` (despite the singular name), each `{address, index, network:{chain, name}}`. When you have none, the response is `200` with `data.address: []` (the 404 branch is effectively unreachable). An unknown `networkId` returns `400 Network not found.` Reference: https://docs.shimi.cash/api-reference/shimi-api/crypto/fetch-pre-generated-address ## Authentication - `Authorization` header (bearer token, required) — Access token from Generate Access Token (valid 15 minutes). ## Request ### Path parameters - `networkId` (string, required) — The network ID from List Available Networks. ## Response ### 200 Addresses / No addresses yet - `status` (string, optional) - `data` (CryptoPregeneratedAddressNetworkIdGetResponsesContentApplicationJsonSchemaData, optional) ## Errors ### 400 Bad Request Error Bad Request - `status` (string, optional) - `message` (string, optional) ### 401 Unauthorized Error Unauthorized - `message` (string, optional) ### 403 Forbidden Error Invalid or expired access token / KYB not approved / Account deactivated - `message` (string, optional) - `code` (string, optional) - `kybStatus` (string, optional) ## Types ### CryptoPregeneratedAddressNetworkIdGetResponsesContentApplicationJsonSchemaData - `address` (list of CryptoPregeneratedAddressNetworkIdGetResponsesContentApplicationJsonSchemaDataAddressItems, optional) ### CryptoPregeneratedAddressNetworkIdGetResponsesContentApplicationJsonSchemaDataAddressItems - `address` (string, optional) - `index` (integer, optional) - `network` (CryptoPregeneratedAddressNetworkIdGetResponsesContentApplicationJsonSchemaDataAddressItemsNetwork, optional) ### CryptoPregeneratedAddressNetworkIdGetResponsesContentApplicationJsonSchemaDataAddressItemsNetwork - `chain` (string, optional) - `name` (string, optional) ## Examples ### 200 Addresses **Response** ```json { "status": "success", "data": { "address": [ { "address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU", "index": 6, "network": { "chain": "SOL", "name": "Solana" } }, { "address": "5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1", "index": 7, "network": { "chain": "SOL", "name": "Solana" } } ] } } ``` **SDK Code** ```python 200 Addresses import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript 200 Addresses const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 200 Addresses package main import ( "fmt" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 200 Addresses require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java 200 Addresses import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 Addresses request('GET', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 Addresses using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 Addresses import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### 200 No addresses yet **Response** ```json { "status": "success", "data": { "address": [] } } ``` **SDK Code** ```python 200 No addresses yet import requests url = "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript 200 No addresses yet const url = 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 200 No addresses yet package main import ( "fmt" "net/http" "io" ) func main() { url := "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 200 No addresses yet require 'uri' require 'net/http' url = URI("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java 200 No addresses yet import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 No addresses yet request('GET', 'https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 No addresses yet using RestSharp; var client = new RestClient("https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 No addresses yet import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://shimi-waas-api-9493532b9281.herokuapp.com/api/v1/crypto/pregenerated-address/networkId")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```