azbang/near-connect/near-connect-transactions
Claude Code and agent skill by azbang/near-connect
- community
Checking that the SKILL.md file is still in the repository.
Send transactions and sign messages with @hot-labs/near-connect. Covers ConnectorAction format (FunctionCall, Transfer, etc.), @near-js Action compatibility, signAndSendTransaction, signAndSendTransactions, signMessage, signInAndSignMessage, signDelegateActions, and function call access key parameters. Use when a dapp needs to call a NEAR contract, sign a message for authentication, or add a limited-access key.
Install
npx vskill@latest install azbang/near-connect/near-connect-transactionsSKILL.md
This skill builds on near-connect-quickstart. Read it first for wallet connection setup.
NEAR Connect — Transactions & Signing
Setup
Get a connected wallet instance (requires sign-in first):
Core Patterns
Send a single transaction (FunctionCall)
Send multiple transactions in batch
Sign a message for authentication
Sign delegate actions (meta-transactions)
Add a function call access key during sign-in
Gas allowance defaults to 0.25 NEAR (in yoctoNEAR) with kind: "limited". Use kind: "unlimited" for no limit.
Action Format Reference
The library accepts two action formats in signAndSendTransaction and signAndSendTransactions:
ConnectorAction (recommended):
| Type | Required params | |
|---|---|---|
FunctionCall | methodName, args, gas (yoctogas string), deposit (yoctoNEAR string) | |
Transfer | deposit (yoctoNEAR string) | |
CreateAccount | none | |
DeployContract | code (Uint8Array) | |
DeleteAccount | beneficiaryId (string) | |
AddKey | publicKey, accessKey | |
DeleteKey | publicKey | |
Stake | stake, publicKey | |
DeployGlobalContract | code, deployMode ("CodeHash" or "AccountId") | |
UseGlobalContract | contractIdentifier ({ accountId } or { codeHash }) |
@near-js Action (also accepted):
Actions from @near-js/transactions (e.g. action.functionCall) are automatically converted via nearActionsToConnectorActions. Both formats work, but ConnectorAction is recommended for portability.
Common Mistakes
HIGH Omitting gas and deposit in FunctionCall action
Wrong:
Correct:
FunctionCall requires gas (in yoctogas, e.g. "30000000000000" for 30 TGas) and deposit (in yoctoNEAR, e.g. "1" for 1 yoctoNEAR). Omitting them causes protocol-level transaction failure.
Source: src/actions/types.ts:10-18
HIGH Calling signMessage without required nonce
Wrong:
Correct:
signMessage requires a nonce as Uint8Array. Omitting it causes the wallet to reject the request.
Source: src/types/index.ts:81-87
HIGH Confusing signMessage with signInAndSignMessage
Wrong:
Correct:
signMessage is a standalone call after sign-in requiring two wallet interactions. signInAndSignMessage (triggered via connect({ signMessageParams })) combines both in one interaction. Use the latter for sign-in with ownership verification.
Source: src/NearConnector.ts:297-316
MEDIUM Using near-api-js action format when ConnectorAction is recommended
Wrong:
Correct:
The library accepts both formats, but ConnectorAction is recommended. It's more portable across wallet types and avoids dependency on near-api-js serialization.
Source: src/actions/types.ts
MEDIUM Wrong gas allowance units for function call keys
Wrong:
Correct:
gasAllowance.amount is in yoctoNEAR. 0.25 NEAR = 250000000000000000000000 yoctoNEAR. Passing a human-readable number creates a key with insufficient or excessive allowance.
Source: src/NearConnector.ts:290-293
Version
Targets @hot-labs/near-connect v0.11.3.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/near-connect-transactions/SKILL.md
Popularity
- Repository stars
- 218
- Repository forks
- 30
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/azbang/near-connect/near-connect-transactions)