Skip to content

Commit 9ceddcb

Browse files
authored
Remove the curl example from the readme. (#3129)
1 parent ec3561e commit 9ceddcb

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

README.md

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -238,55 +238,3 @@ The transaction executor currently performs instant block production. Changes ar
238238
- Schema (available after building): `crates/client/assets/schema.sdl`
239239

240240
The service expects a mutation defined as `submit` that receives a [Transaction](https://github.com/FuelLabs/fuel-vm/tree/master/fuel-tx) in hex encoded binary format, as [specified here](https://github.com/FuelLabs/fuel-specs/blob/master/src/tx-format/transaction.md).
241-
242-
### cURL example
243-
244-
This example will execute a script that represents the following sequence of [ASM](https://github.com/FuelLabs/fuel-vm/tree/master/fuel-asm):
245-
246-
```rs
247-
ADDI(0x10, RegId::ZERO, 0xca),
248-
ADDI(0x11, RegId::ZERO, 0xba),
249-
LOG(0x10, 0x11, RegId::ZERO, RegId::ZERO),
250-
RET(RegId::ONE),
251-
```
252-
253-
```console
254-
$ cargo run --bin fuel-core-client -- transaction submit \
255-
"{\"Script\":{
256-
\"body\":{
257-
\"script_gas_limit\":1000000,
258-
\"receipts_root\":\"0000000000000000000000000000000000000000000000000000000000000000\",
259-
\"script\":[80,64,0,202,80,68,0,186,51,65,16,0,36,4,0,0],
260-
\"script_data\":[]
261-
},
262-
\"policies\":{
263-
\"bits\":\"Maturity | MaxFee\",
264-
\"values\":[0,0,0,0]},
265-
\"inputs\":[{
266-
\"CoinSigned\":{
267-
\"utxo_id\":{
268-
\"tx_id\":\"c49d65de61cf04588a764b557d25cc6c6b4bc0d7429227e2a21e61c213b3a3e2\",
269-
\"output_index\":33298
270-
},
271-
\"owner\":\"f1e92c42b90934aa6372e30bc568a326f6e66a1a0288595e6e3fbd392a4f3e6e\",
272-
\"amount\":4294967295,
273-
\"asset_id\":\"0000000000000000000000000000000000000000000000000000000000000000\",
274-
\"tx_pointer\":{
275-
\"block_height\":0,
276-
\"tx_index\":0
277-
},
278-
\"witness_index\":0,
279-
\"predicate_gas_used\":null,
280-
\"predicate\":null,
281-
\"predicate_data\":null}}],
282-
\"outputs\":[],
283-
\"witnesses\":[{
284-
\"data\":[167,184,58,243,113,131,73,255,233,187,213,245,147,97,92,200,55,162,35,88,241,0,222,151,44,66,30,244,186,138,146,161,73,250,79,15,67,105,225,4,79,142,222,72,74,1,221,173,88,143,201,96,229,4,170,19,75,126,67,159,133,151,149,51]}
285-
]}}"
286-
```
287-
288-
You may meet the error `Transaction is not inserted. UTXO does not exist` due to the UTXO validation. The UTXO validation can be turned off by adding the `--debug` flag.
289-
290-
```console
291-
$ ./target/debug/fuel-core run --db-type in-memory --debug
292-
```

0 commit comments

Comments
 (0)