Wallets, tokens & networks
Update Network
Full-replacement edit of a custom org network; seeded default networks accept name and logo only.
Not available to API keys.
curl --request POST \
--url 'https://api.toku.com/stablecoin-payroll/update-network' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"networkID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"networkLogoURI": "string",
"meshConnectNetworkID": "string",
"evmChainID": 0,
"multiSendCallOnlyAddress": "string",
"safeSingletonAddress": "string",
"safeFactoryAddress": "string",
"safeAppBaseUrl": "string",
"safeTxServiceUrl": "string",
"rpcUrl": "string",
"blockExplorerBaseUrl": "string",
"eipsName": "string",
"aleoTransferVisibility": "PUBLIC"
}'{
"network": {
"networkID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"orgID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"icon": "string",
"tokenType": "ERC20",
"isNetworkEnabled": true,
"chainType": "EVM",
"meshConnectNetworkID": "string",
"evmChainID": 0,
"multiSendCallOnlyAddress": "string",
"safeSingletonAddress": "string",
"safeFactoryAddress": "string",
"safeAppBaseUrl": "string",
"safeTxServiceUrl": "string",
"blockExplorerBaseUrl": "string",
"eipsName": "string",
"aleoTransferVisibility": "PUBLIC",
"defaultNetworkSlugUrl": "string",
"catalogChainID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rpcUrlConfigured": true
}
}Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is an access token from a Toku sign-in. See Authentication in the API reference.
Body
application/json
networkIDstring<uuid>requirednamestringrequiredAllowed: at least 1 characters
networkLogoURIstringmeshConnectNetworkIDstringevmChainIDintegerAllowed: at least 1
multiSendCallOnlyAddressstringsafeSingletonAddressstringsafeFactoryAddressstringsafeAppBaseUrlstring<uri>NOTE(ck): a .refine() rule on a nested schema is not mirrored here; TGA still enforces it
safeTxServiceUrlstring<uri>NOTE(ck): a .refine() rule is not mirrored here; TGA still enforces it NOTE(ck): a .refine() rule on a nested schema is not mirrored here; TGA still enforces it
rpcUrlstring | null<uri>NOTE(ck): a .refine() rule on a nested schema is not mirrored here; TGA still enforces it
blockExplorerBaseUrlstring<uri>NOTE(ck): a .refine() rule on a nested schema is not mirrored here; TGA still enforces it
eipsNamestringaleoTransferVisibilitystringAvailable options: PUBLIC, PUBLIC_TO_PRIVATE, PRIVATE
Response
200Successful response
networkobjectrequiredShow child attributes
networkIDstring<uuid>requiredorgIDstring<uuid>requirednamestringrequirediconstring | nullrequiredtokenTypestringrequiredAvailable options: ERC20, NATIVE
isNetworkEnabledboolean | nullrequiredchainTypestring | nullrequiredAvailable options: EVM, SOLANA, XRPL, BITCOIN, COSMOS_SDK, FILECOIN, PROVENANCE, ALEO, FOGO, FIAT, NEAR, POLKADOT, STACKS, SUI, null
meshConnectNetworkIDstring | nullrequiredevmChainIDinteger | nullrequiredmultiSendCallOnlyAddressstring | nullrequiredsafeSingletonAddressstring | nullrequiredsafeFactoryAddressstring | nullrequiredsafeAppBaseUrlstring | nullrequiredsafeTxServiceUrlstring | nullblockExplorerBaseUrlstring | nullrequiredeipsNamestring | nullrequiredaleoTransferVisibilitystring | nullrequiredAvailable options: PUBLIC, PUBLIC_TO_PRIVATE, PRIVATE, null
defaultNetworkSlugUrlstring | nullrequiredcatalogChainIDstring | null<uuid>requiredrpcUrlConfiguredbooleanrequired