Skip to content

Commit

Permalink
Fixed execution-apis spec version to specific commit + added API Refe…
Browse files Browse the repository at this point in the history
…rence docs to README (#222)

* Added API Reference docs to README

* Fixed execution-apis spec version to specific commit
  • Loading branch information
shanejonas authored Apr 25, 2024
1 parent 7d03485 commit b3d39b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# MetaMask API Specs

API Playground: https://metamask.github.io/api-playground/api-documentation
API Reference Docs: https://docs.metamask.io/wallet/reference/json-rpc-api/

Latest build: https://metamask.github.io/api-specs/latest/openrpc.json

Expand Down
2 changes: 1 addition & 1 deletion merge-openrpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const yaml = require("js-yaml");
const MetaMaskOpenRPC = yaml.load(fs.readFileSync(__dirname + "/openrpc.yaml", "utf8"));

const getFilteredExecutionAPIs = () => {
return fetch("https://raw.githubusercontent.com/ethereum/execution-apis/assembled-spec/refs-openrpc.json")
return fetch("https://raw.githubusercontent.com/ethereum/execution-apis/59e6a6f9947859e8bb41bc63b248aa026b0781bd/refs-openrpc.json")
.then(async (res) => {
return filterExecutionAPIs(await res.json());
});
Expand Down

0 comments on commit b3d39b3

Please sign in to comment.