PreçosGitHubPainel

Sui

sui.rpc.v2.TransactionExecutionService/ExecuteTransaction150 créditos

Execute a signed transaction

Rede: sui

Parâmetros

NomeTipoDescrição
transactionTransactionThe transaction to execute (for example its BCS encoding in transaction.bcs).
signaturesUserSignature[]Signatures authorizing the execution.
read_maskgoogle.protobuf.FieldMaskFields of the ExecutedTransaction to return. Defaults to effects.status,checkpoint. (opcional)

Retorno

Tipo

ExecuteTransactionResponse

transaction: the ExecutedTransaction with the fields selected by read_mask. Changes the chain state.

Exemplos de código

# the key of the endpoint goes in the x-token header; add -proto <file> when the node has no gRPC reflection
grpcurl \
  -H 'x-token: 7c9e6679-7425-40de-944b-e07fc1f90ae7' \
  -d '{
  "transaction": {
    "bcs": {
      "value": "AAACACBfmzYh0HoOxS5FQyGBCQKCVrQsqz1b2yQPzaRNf5fNJwEAAAAAAAAAAA=="
    }
  },
  "signatures": [
    {
      "bcs": {
        "value": "AIYbBfmzYh0HoOxS5FQyGBCQKCVrQsqz1b2yQPzaRNf5fNJwEAAAAAAAAAAA=="
      }
    }
  ],
  "read_mask": "effects.status,checkpoint"
}' \
  grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
  sui.rpc.v2.TransactionExecutionService/ExecuteTransaction