Pular para o conteúdo

[Ethereum] Process contract call

Requisição

Segurança
httpAuth
Caminho
ledgerIdstring, non-emptyobrigatório
Corpoapplication/jsonobrigatório

A contract call to execute on an ethereum compatible ledger.

contractAddressstring, [ 1 .. 512 ] charactersobrigatório
fromanyobrigatório
valuestring, >= 0

This field is a large integer that can be positive or zero. It is represented as a string because it may contain value that cannot be expressed with JSON number without a loss of precision.

datastring^0[xX]([a-fA-F0-9]*)$
curl -i -X POST \
  'https://docs.ripple.com/_mock/pt-br/products/custody/devbox/v1/ledgers/{ledgerId}/ethereum/call' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "contractAddress": "string",
    "from": {
      "domainId": "8a0b02c3-fdd8-452e-bc6e-ef07a335ec7e",
      "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
      "type": "Account"
    },
    "value": "string",
    "data": "string"
  }'

Respostas

Corpoapplication/json
string^0[xX]([a-fA-F0-9]*)$
Resposta
"string"