Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
doc: use json rpc provider in verifying example
Browse files Browse the repository at this point in the history
  • Loading branch information
MinHtet-O committed Jun 24, 2024
1 parent a15529c commit fe086ba
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ Currently, here are the designated roles meant for the different key operations.

#### Verifying

This example provides how to verify tradetrust document using your own provider configurations.
This example provides how to verify tradetrust document using your own provider. This process doesn't require wallet information. Replace the value of `<your_provider_url>` accordingly.

```ts
import {
Expand All @@ -430,14 +430,8 @@ import {
providerType,
} from '@tradetrust-tt/tradetrust-core'

const providerOptions = {
// modify your provider options accordingly
network: 'sepolia',
providerType: 'infura' as providerType,
apiKey: 'your-api-key',
}
// create provider object
const provider = generateProvider(providerOptions)
// create your provider
const provider = new ethers.providers.JsonRpcProvider('<your_provider_url>')

let document = {
// tradetrust document
Expand Down

0 comments on commit fe086ba

Please sign in to comment.