Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.03 KB

_ABI_PLUGIN.md

File metadata and controls

33 lines (22 loc) · 1.03 KB

ABI Plugin

Back to Index

Overview

The ABI Plugin will scan child directories for JSON files that contain an abi and an address.

These ABI definitions will then be presented under an _abi_ menu option, that will allow the user to invoke the contract's various functions.

It will scan up to a maximum of five child directories deep.

Configuration > Environment Variables (Required)

  • PROVIDER_URL - (string) the JSON RPC endpoint to connect to.
  • PRIVATE_KEY - (string - optional) the private key of the wallet to load.
  • BLOCK_NUMBER - (string - optional) the block tag at which to execute the function.

Example:

plugins:
    abi: true

env:
    default:
        PROVIDER_URL: https://api.avax.network/ext/bc/C/rpc
        PRIVATE_KEY: abcdefg
        BLOCK_NUMBER: 123456