particle

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AAGetBTCAccountReqParams

type AAGetBTCAccountReqParams struct {
	Name         string `json:"name"`
	Version      string `json:"version"`
	BtcPublicKey string `json:"btcPublicKey"`
}

type AAGetBTCAccountResult

type AAGetBTCAccountResult struct {
	Response
	Result []struct {
		ChainID             int    `json:"chainId"`
		IsDeployed          bool   `json:"isDeployed"`
		EoaAddress          string `json:"eoaAddress"`
		FactoryAddress      string `json:"factoryAddress"`
		EntryPointAddress   string `json:"entryPointAddress"`
		SmartAccountAddress string `json:"smartAccountAddress"`
		Owner               string `json:"owner"`
		Name                string `json:"name"`
		Version             string `json:"version"`
		Index               int    `json:"index"`
		BtcPublicKey        string `json:"btcPublicKey"`
	} `json:"result"`
}

type Particle

type Particle struct {
	// contains filtered or unexported fields
}

func NewParticle

func NewParticle(rpc, projectID, serverKey string, chainID int) (*Particle, error)

func (*Particle) AAGetBTCAccount

func (p *Particle) AAGetBTCAccount(btcPubKeys []string) (*AAGetBTCAccountResult, error)

type Req

type Req struct {
	Jsonrpc string `json:"jsonrpc"`
	ID      string `json:"id"`
	ChainID int    `json:"chainId"`
	Method  string `json:"method"`
	Params  any    `json:"params"`
}

type Response

type Response struct {
	Jsonrpc string `json:"jsonrpc"`
	ID      string `json:"id"`
	ChainID int    `json:"chainId"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL