Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/transactions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ const serializedSignedTx = deserializedTx.serialize();
Read-only contract functions can be called without generating or broadcasting a transaction. Instead it works via a direct API call to a Stacks node.

```typescript
import { bufferCVFromString, callReadOnlyFunction } from '@stacks/transactions';
import { bufferCVFromString, fetchCallReadOnlyFunction } from '@stacks/transactions';
import { StacksTestnet } from '@stacks/network';

const contractAddress = 'ST3KC0MTNW34S1ZXD36JYKFD3JJMWA01M55DSJ4JE';
Expand All @@ -282,7 +282,7 @@ const options = {
senderAddress,
};

const result = await callReadOnlyFunction(options);
const result = await fetchCallReadOnlyFunction(options);
```

## Constructing Clarity Values
Expand Down
2 changes: 1 addition & 1 deletion packages/transactions/src/clarity/clarityValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ type ClarityTypetoValue = {
* @example
* ```ts
* // some functions can return a generic `ClarityValue` type
* let value = callReadOnlyFunction();
* let value = fetchCallReadOnlyFunction();
* // ^ ClarityValue
* // use `isClarityType` to narrow down the type
* assert(isClarityType(value, ClarityType.Int))
Expand Down