Get smart contract information for a company
curl --request GET \
--url https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts \
--header 'Api-Key: <api-key>'import requests
url = "https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts"
headers = {"Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Key': '<api-key>'}};
fetch('https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts")
.header("Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chainId": 123,
"controllerAddress": "<string>",
"proxyAddress": "<string>",
"tokens": [
{
"address": "<string>",
"balance": "<string>",
"exchangeRate": 123,
"advanceRate": 123
}
],
"contractVersion": 123,
"programAddress": "<string>",
"depositAddress": "<string>",
"adminAddresses": [
"<string>"
],
"onramp": {
"ach": {
"beneficiaryName": "<string>",
"beneficiaryAddress": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>",
"beneficiaryBankName": "<string>",
"beneficiaryBankAddress": "<string>"
},
"rtp": {
"beneficiaryName": "<string>",
"beneficiaryAddress": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>",
"beneficiaryBankName": "<string>",
"beneficiaryBankAddress": "<string>"
},
"wire": {
"beneficiaryName": "<string>",
"beneficiaryAddress": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>",
"beneficiaryBankName": "<string>",
"beneficiaryBankAddress": "<string>"
}
}
}
]Contracts
Get smart contract information for a company
GET
/
issuing
/
companies
/
{companyId}
/
contracts
Get smart contract information for a company
curl --request GET \
--url https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts \
--header 'Api-Key: <api-key>'import requests
url = "https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts"
headers = {"Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Key': '<api-key>'}};
fetch('https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts")
.header("Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dev.rain.xyz/v1/issuing/companies/{companyId}/contracts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chainId": 123,
"controllerAddress": "<string>",
"proxyAddress": "<string>",
"tokens": [
{
"address": "<string>",
"balance": "<string>",
"exchangeRate": 123,
"advanceRate": 123
}
],
"contractVersion": 123,
"programAddress": "<string>",
"depositAddress": "<string>",
"adminAddresses": [
"<string>"
],
"onramp": {
"ach": {
"beneficiaryName": "<string>",
"beneficiaryAddress": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>",
"beneficiaryBankName": "<string>",
"beneficiaryBankAddress": "<string>"
},
"rtp": {
"beneficiaryName": "<string>",
"beneficiaryAddress": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>",
"beneficiaryBankName": "<string>",
"beneficiaryBankAddress": "<string>"
},
"wire": {
"beneficiaryName": "<string>",
"beneficiaryAddress": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>",
"beneficiaryBankName": "<string>",
"beneficiaryBankAddress": "<string>"
}
}
}
]Authorizations
Path Parameters
Id of the company to get smart contracts for
Response
Successful operation
Id of the contract
Chain id that the contract is deployed on, as a parsed base-10 number
Address of the contract controller
Pattern:
^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$Address of the contract
Pattern:
^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$Tokens that the contract accepts
Show child attributes
Show child attributes
Version of the contract
Address of the contract program (exclusive of Solana)
Pattern:
^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$Address to deposit funds to
Pattern:
^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$Admin wallet addresses for the smart contract. For V1 EVM contracts, contains the on-chain owner address. For V2 EVM contracts, contains multiple admin addresses.
Pattern:
^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$Virtual account information for onramping
Show child attributes
Show child attributes