Create Multiple Subaddresses
Prod Env
https://api.aio.cash
Prod Env
https://api.aio.cash
POST
/user-addrs/multichain
Endpoint Description: /user-addrs/multichain
Request Body Requirements
chain
, the count
of addresses to generate, and optionally, the type
of address, which is relevant for certain chains.Properties
chain
: Specifies the blockchain type for which the address(es) will be generated. Supported values are 'BITCOIN', 'ETHEREUM', 'LITECOIN', 'TRON', 'ARBITRUM_ONE' and 'OPTIMISM'.count
: Indicates the number of addresses to generate. The value must be an integer between 1 and 10.type
(optional): Specifies the type of address to generate. For BITCOIN
, the valid types are DEFAULT
and P2WPKH
. For all other chains, the only valid type is DEFAULT
. This field defaults to DEFAULT
if not provided.Validation Rules
1.
BITCOIN
, both DEFAULT
(which generates a P2TR
type address) and P2WPKH
are valid values for the type
field.BITCOIN
, the type
must be DEFAULT
.2.
type
field is validated based on the chain specified:BITCOIN
is selected, type
can be either DEFAULT
or P2WPKH
.ETHEREUM
and OPTIMISM
, only DEFAULT
is acceptable.3.
count
must be a positive integer and should not exceed 10 to prevent excessive load and potential misuse of the service.Error Handling
Rate Limit
Request
Body Params application/json
Request samples
Responses
Modified at 2024-06-11 13:08:23