You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
abi: Contract's Abi as JSON. See [loadJson](#loadjson) command to import this file into a variable
530
+
functionName: A function to extract from the ABI and call
531
+
[chainId]: Forces a specific chain id for the request
532
+
[args]: List of arguments to pass to the function
521
533
522
534
## set
523
-
TODO
535
+
Can be used to set a variable.
536
+
537
+
Usage:
538
+
```bash
539
+
set value > varName
540
+
```
524
541
525
542
## supportedChains
526
-
TODO
543
+
Returns an array of supported chains.
544
+
545
+
Usage:
546
+
```bash
547
+
supportedChains
548
+
```
549
+
550
+
Output:
551
+
<pre>[{
552
+
id: 11155111,
553
+
network: "sepolia",
554
+
name: "Sepolia",
555
+
nativeCurrency: {
556
+
name: "Sepolia Ether",
557
+
symbol: "SEP",
558
+
decimals: 18
559
+
},
560
+
rpcUrls: {…},
561
+
blockExplorers: {…},
562
+
…
563
+
}, {…}, …]</pre>
527
564
528
565
## switchNetwork
529
-
TODO
566
+
Switches to a different chain. Chain must be supported. You can list the supported chain ids by typing `supportedChains | fromProperty id`
530
567
531
568
## toBigint
532
-
TODO
569
+
Converts a string to a BigInt.
533
570
534
571
## toBoolean
535
-
TODO
572
+
Converts a string to a Boolean.
536
573
537
574
## toHex
538
-
TODO
575
+
Encodes a string, number, boolean or byte array to a hex value value.
576
+
577
+
Usage:
578
+
```bash
579
+
toHex 420 # 0x1a4
580
+
toHex "Hello world"# 0x48656c6c6f20776f726c642e
581
+
toHex true# 0x1
582
+
```
539
583
540
584
## toNumber
541
-
TODO
585
+
Converts a string to a Number.
542
586
543
587
## toRlp
544
-
TODO
588
+
Encodes a hex value or byte array into a <ahref="https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/">Recursive-Length Prefix (RLP)</a> encoded value.
0 commit comments