介绍
hymatrix-js 创建 HyMatrix 实例的配置项,配置项包含:debug, accid, signer, privateKey, arJWK。
- 配置项类型为
Config。
import { JWKInterface } from 'arweave/node/lib/wallet'
import { Web3Provider } from '@ethersproject/providers'
export type ArJWK = JWKInterface | 'use_wallet'
export type EthereumPrivateKey = `0x${string}`
export type Config = {
debug?: boolean
accid?: string
signer?: Web3Provider
privateKey?: EthereumPrivateKey
arJWK?: ArJWK
}