Sui
sui.rpc.v2.TransactionExecutionService/ExecuteTransaction150 크레딧
Execute a signed transaction
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| transaction | Transaction | The transaction to execute (for example its BCS encoding in transaction.bcs). |
| signatures | UserSignature[] | Signatures authorizing the execution. |
| read_mask | google.protobuf.FieldMask | Fields of the ExecutedTransaction to return. Defaults to effects.status,checkpoint. (선택) |
반환값
타입
ExecuteTransactionResponse
transaction: the ExecutedTransaction with the fields selected by read_mask. Changes the chain state.
코드 예제
# 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