chain

Create Account

Creates a new blockchain account by funding it with an initial transaction, using the recipient’s public key as the account identifier. The response includes details like chain ID, funding source, gas usage, and transaction data, enabling immediate activation and interaction on the network.

💡 Compute Unit Value: 40 (Fixed)

post/defi/v1/chain/createaccount

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/chain/createaccount
  • Auth
    API key in header X-API-Key

Request body

chainId'1500' | '1501' | '1600' | '1601'

The unique ID to direct queries or transactions to the correct blockchain. Find more here.

chainSymbolstring

The abbreviated chain name for queries or transactions.

fromstring required

Public blockchain address of the sender initiating the transaction. Format depends on the chain (e.g., 0xABCDEF... for EVM, G... for Stellar).

tostring required

Public blockchain address of the recipient. Format depends on the chain (e.g., 0xABCDEF... for EVM, G... for Stellar).

amountstring required

Amount of native asset in the chain's smallest denomination (base units). Do not send human-readable decimal values. Examples: 1 ETH (wei) = "1000000000000000000"; 1 XLM (stroops) = "10000000".

destinationTagstring

Optional tag for identifying the recipient's account on the XRPLedger.

Example request

{
  "chainId": "1500",
  "chainSymbol": "ETH",
  "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
  "amount": "1000000000000000000",
  "destinationTag": "10"
}

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "chainId": "1500",
    "from": "GARNHXH36IUZE4F5MON5XBQX37OGVFGCOPOPN7CPQL3TP7VX2XI35QUJ",
    "gas": "100",
    "data": "AAAAAgAAAAAi09z78imScL1jm9uGF9/capTCc9z2/E+C9zf+t9XRvgAAAGQDC8UiAAAACAAAAAEAAAAAAAAAAAAAAABmfTp1AAAAAAAAAAEAAAAAAAAAAAAAAADQuA91G4JBImyPV1qVbcQQO5ZLoAbUUpgWDTv3XKqezQAAAAAATEtAAAAAAAAAAAA="
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.