Skip to content

Commit dd21cef

Browse files
committed
contract-call example
1 parent 5518bc5 commit dd21cef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ Public key: `0x02752f4db204f7cdf6e022dc486af2572579bc9a0fe7c769b58d95f4223426936
5555
Call `get-price` with `source` and `symbol`, for example:
5656
```
5757
(get-price "coinbase" "BTC")
58+
59+
(contract-call? 'SPZ0RAC1EFTH949T4W2SYY6YBHJRMAF4ECT5A7DD.oracle-v1 get-price "coinbase" "BTC")
60+
5861
```
5962
to get the latest price for BTC (in USD) from the Coinbase feed
6063

0 commit comments

Comments
 (0)