Install any skill in seconds. Free to start, no credit card required.
Get Started Free →internet-court/near-api-js
Guide for developing with near-api-js v7 - the JavaScript/TypeScript library for NEAR blockchain interaction.
Passed 21 of 22 test cases with the skill, and 4 of 22 without it.
and 32 more in the full report
18 fixed3 passed either way0 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 18 test cases the skill fixed. Same model, same prompt, with and without the skill.
When transferring NEAR tokens using near-api-js, what specific error class can I catch if the recipient account does not exist on-chain?
| Checked | Without skill | With skill |
|---|---|---|
| Imports AccountDoesNotExistActionError from near-api-js/rpc-errors | Missed | Passed |
| Checks if caught error is an instance of AccountDoesNotExistActionError | Missed | Passed |
The instructions your model reads when the skill loads.
JavaScript/TypeScript library for NEAR blockchain interaction. Works in browser and Node.js.
import { Account, JsonRpcProvider, KeyPairString } from "near-api-js";
import { NEAR } from "near-api-js/tokens";
// Connect to testnet
const provider = new JsonRpcProvider({ url: "https://test.rpc.fastnear.com" });
// Create account with signer
const account = new Account(
"my-account.testnet",
provider,
"ed25519:..." as KeyPairString,
);
// View call (read-only, via provider)
const data = await provider.callFunction({
contractId: "guestbook.near-examples.testnet",
method: "get_messages",
args: {},
});
// Change call (requires account)
await account.callFunction({
contractId: "guestbook.near-examples.testnet",
methodName: "add_message",
args: { text: "Hello!" },
gas: teraToGas("30"),
deposit: nearToYocto("0.1"),
});
test cases passed, vs 4 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.