POST
/
organizations
/
{organizationId}
/
customNetworks
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/organizations/{organizationId}/customNetworks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "networkType": "ETH",
  "chainName": "Base Mainnet",
  "chainId": "8453",
  "rpcUrl": "https://website-sample.com",
  "blockExplorerUrl": "https://website-sample.com",
  "iconUrl": "https://website-sample.com",
  "nativeCurrencyName": "Ethereum",
  "nativeCurrencySymbol": "ETH",
  "nativeCurrencyIconUrl": "https://website-sample.com",
  "nativeCurrencyDecimals": 18
}'
{
  "customNetwork": {
    "id": "95b11417-f18f-457f-8804-68e361f9164f",
    "networkType": "ETH",
    "chainName": "<string>",
    "chainId": "<string>",
    "rpcUrl": "https://website-sample.com",
    "blockExplorerUrl": "https://website-sample.com",
    "iconUrl": "https://website-sample.com",
    "nativeCurrencyName": "<string>",
    "nativeCurrencySymbol": "<string>",
    "nativeCurrencyIconUrl": "https://website-sample.com",
    "nativeCurrencyDecimals": 9
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required

ID of organization

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Body

application/json
Data to create a custom network
networkType
enum<string>
required
Available options:
ETH,
EVM,
FLOW,
SOL,
ALGO,
STARK,
COSMOS,
BTC,
ECLIPSE
chainName
string
required

Name of the custom network

Maximum length: 100
Example:

"Base Mainnet"

chainId
string
required

Chain ID of the network

Maximum length: 100
Example:

"8453"

rpcUrl
string
required
Maximum length: 255
Example:

"https://website-sample.com"

blockExplorerUrl
string
required
Maximum length: 255
Example:

"https://website-sample.com"

iconUrl
string
required
Maximum length: 255
Example:

"https://website-sample.com"

nativeCurrencyName
string
required

Full name of the native currency

Maximum length: 100
Example:

"Ethereum"

nativeCurrencySymbol
string
required

Symbol of the native currency

Maximum length: 100
Example:

"ETH"

nativeCurrencyIconUrl
string
required
Maximum length: 255
Example:

"https://website-sample.com"

nativeCurrencyDecimals
number
required

Number of decimals for the native currency

Required range: 0 <= x <= 18
Example:

18

Response

201
application/json
Custom network created
customNetwork
object