curl --request POST \
--url http://127.0.0.1:9550/v2/create_local_wallet \
--header 'Content-Type: application/json' \
--data '
{
"network": "BaseSepolia",
"role": "Payment"
}
'{
"address": {
"address_id": "<string>",
"network_id": "BaseSepolia",
"wallet_id": "<string>",
"public_key": "<string>"
},
"id": "<string>",
"network": {
"chain_id": 1,
"display_name": "<string>",
"id": "BaseSepolia",
"is_testnet": true,
"native_asset": {
"asset_id": "<string>",
"network_id": "BaseSepolia",
"contract_address": "<string>",
"decimals": 1
},
"protocol_family": "Evm"
},
"provider_url": "<string>",
"wallet_private_key": "<string>"
}curl --request POST \
--url http://127.0.0.1:9550/v2/create_local_wallet \
--header 'Content-Type: application/json' \
--data '
{
"network": "BaseSepolia",
"role": "Payment"
}
'{
"address": {
"address_id": "<string>",
"network_id": "BaseSepolia",
"wallet_id": "<string>",
"public_key": "<string>"
},
"id": "<string>",
"network": {
"chain_id": 1,
"display_name": "<string>",
"id": "BaseSepolia",
"is_testnet": true,
"native_asset": {
"asset_id": "<string>",
"network_id": "BaseSepolia",
"contract_address": "<string>",
"decimals": 1
},
"protocol_family": "Evm"
},
"provider_url": "<string>",
"wallet_private_key": "<string>"
}Enum representing the ID of the blockchain network.
BaseSepolia, BaseMainnet, EthereumSepolia, EthereumMainnet, ArbitrumSepolia, ArbitrumMainnet, Anvil Enum to represent different wallet roles. Useful for the API.
Payment, Receiving, Both Successfully created wallet
Represents an address in a wallet.
Show child attributes
The onchain address derived on the server-side.
Enum representing the ID of the blockchain network.
BaseSepolia, BaseMainnet, EthereumSepolia, EthereumMainnet, ArbitrumSepolia, ArbitrumMainnet, Anvil The ID of the wallet that owns the address.
The public key from which the address is derived.
Represents a blockchain network.
Show child attributes
The chain ID of the blockchain network.
x >= 0The human-readable name of the blockchain network.
Enum representing the ID of the blockchain network.
BaseSepolia, BaseMainnet, EthereumSepolia, EthereumMainnet, ArbitrumSepolia, ArbitrumMainnet, Anvil Whether the network is a testnet or not.
Represents an asset onchain scoped to a particular network.
Show child attributes
The ID for the asset on the network.
Enum representing the ID of the blockchain network.
BaseSepolia, BaseMainnet, EthereumSepolia, EthereumMainnet, ArbitrumSepolia, ArbitrumMainnet, Anvil The optional contract address for the asset. This will be specified for smart contract-based assets, for example ERC20s.
The number of decimals the asset supports. This is used to convert from atomic units to base units.
x >= 0Enum representing the protocol family of the blockchain network.
Evm Was this page helpful?