Skip to content

Commit

Permalink
Fix documentation links for JSON-RPC provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Braun authored and frol committed Mar 5, 2021
1 parent 960b798 commit 1c824e0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/providers/json-rpc-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class JsonRpcProvider extends Provider {

/**
* Gets the RPC's status
* See [docs for more info](https://docs.nearprotocol.com/docs/interaction/rpc#status)
* See [docs for more info](https://docs.near.org/docs/develop/front-end/rpc#general-validator-status)
* @returns {Promise<NodeStatusResult>}
*/
async status(): Promise<NodeStatusResult> {
Expand All @@ -66,7 +66,7 @@ export class JsonRpcProvider extends Provider {

/**
* Sends a signed transaction to the RPC
* See [docs for more info](https://docs.nearprotocol.com/docs/interaction/rpc#send-transaction-wait-until-done)
* See [docs for more info](https://docs.near.org/docs/develop/front-end/rpc#send-transaction-await)
* @param signedTransaction The signed transaction being sent
* @returns {Promise<FinalExecutionOutcome>}
*/
Expand All @@ -77,7 +77,7 @@ export class JsonRpcProvider extends Provider {

/**
* Gets a transaction's status from the RPC
* See [docs for more info](https://docs.nearprotocol.com/docs/interaction/rpc#status)
* See [docs for more info](https://docs.near.org/docs/develop/front-end/rpc#transaction-status)
* @param txHash The hash of the transaction
* @param accountId The NEAR account that signed the transaction
* @returns {Promise<FinalExecutionOutcome>}
Expand All @@ -87,7 +87,7 @@ export class JsonRpcProvider extends Provider {
}

/**
* Query the RPC as [shown in the docs](https://docs.nearprotocol.com/docs/interaction/rpc#query)
* Query the RPC as [shown in the docs](https://docs.near.org/docs/develop/front-end/rpc#accounts--contracts)
*/
async query(...args: any[]): Promise<any> {
let result;
Expand All @@ -107,7 +107,7 @@ export class JsonRpcProvider extends Provider {

/**
* Query for block info from the RPC
* See [docs for more info](https://docs.nearprotocol.com/docs/interaction/rpc#block)
* See [docs for more info](https://docs.near.org/docs/interaction/rpc#block)
*/
async block(blockQuery: BlockId | BlockReference): Promise<BlockResult> {
const { finality } = blockQuery as any;
Expand All @@ -124,7 +124,7 @@ export class JsonRpcProvider extends Provider {

/**
* Queries for details of a specific chunk appending details of receipts and transactions to the same chunk data provided by a block
* See [docs for more info](https://docs.nearprotocol.com/docs/interaction/rpc#chunk)
* See [docs for more info](https://docs.near.org/docs/interaction/rpc#chunk)
* @param chunkId Hash of a chunk ID or shard ID
* @returns {Promise<ChunkResult>}
*/
Expand All @@ -134,7 +134,7 @@ export class JsonRpcProvider extends Provider {

/**
* Query validators of the epoch defined by given block id.
* See [docs for more info](https://docs.nearprotocol.com/docs/interaction/rpc#validators)
* See [docs for more info](https://docs.near.org/docs/develop/front-end/rpc#detailed-validator-status)
* @param blockId Block hash or height, or null for latest.
*/
async validators(blockId: BlockId | null): Promise<EpochValidatorInfo> {
Expand Down

0 comments on commit 1c824e0

Please sign in to comment.