Documentation ¶
Index ¶
Constants ¶
const ( Matic = "matic" Bnb = "bnb" Avalanche = "avalanche" Arbitrum = "arbitrum" Fantom = "fantom" Ethereum = "ethereum" )
const ( GraphqlMainNet = "https://arweave.mainnet.irys.xyz/graphql" GraphqlMainNet2 = "https://arweave.net/graphql" )
const QueryTx_Operation = `` /* 214-byte string literal not displayed */
The query or mutation executed by QueryTx.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IrysClient ¶
type IrysClient struct {
// contains filtered or unexported fields
}
func NewIrysClient ¶
func NewIrysClient(networkName, rpc, privateKey string, enableFreeUpload bool) (*IrysClient, error)
NewIrysClient support tokens ethereum,matic,bnb,avalanche,arbitrum,fantom
func (*IrysClient) Download ¶
func (c *IrysClient) Download(ctx context.Context, id []byte) (io.ReadCloser, error)
type QueryTxResponse ¶
type QueryTxResponse struct {
Transactions QueryTxTransactionsEdges `json:"transactions"`
}
QueryTxResponse is returned by QueryTx on success.
func (*QueryTxResponse) GetTransactions ¶
func (v *QueryTxResponse) GetTransactions() QueryTxTransactionsEdges
GetTransactions returns QueryTxResponse.Transactions, and is useful for accessing the field via an interface.
type QueryTxTransactionsEdges ¶
type QueryTxTransactionsEdges struct {
Edges []QueryTxTransactionsEdgesEdgesNode `json:"edges"`
}
QueryTxTransactionsEdges includes the requested fields of the GraphQL type Edges.
func (*QueryTxTransactionsEdges) GetEdges ¶
func (v *QueryTxTransactionsEdges) GetEdges() []QueryTxTransactionsEdgesEdgesNode
GetEdges returns QueryTxTransactionsEdges.Edges, and is useful for accessing the field via an interface.
type QueryTxTransactionsEdgesEdgesNode ¶
type QueryTxTransactionsEdgesEdgesNode struct {
Node QueryTxTransactionsEdgesEdgesNodeNodeTransaction `json:"node"`
}
QueryTxTransactionsEdgesEdgesNode includes the requested fields of the GraphQL type Node.
func (*QueryTxTransactionsEdgesEdgesNode) GetNode ¶
func (v *QueryTxTransactionsEdgesEdgesNode) GetNode() QueryTxTransactionsEdgesEdgesNodeNodeTransaction
GetNode returns QueryTxTransactionsEdgesEdgesNode.Node, and is useful for accessing the field via an interface.
type QueryTxTransactionsEdgesEdgesNodeNodeTransaction ¶
type QueryTxTransactionsEdgesEdgesNodeNodeTransaction struct { Id string `json:"id"` Tags []QueryTxTransactionsEdgesEdgesNodeNodeTransactionTagsTag `json:"tags"` }
QueryTxTransactionsEdgesEdgesNodeNodeTransaction includes the requested fields of the GraphQL type Transaction.
func (*QueryTxTransactionsEdgesEdgesNodeNodeTransaction) GetId ¶
func (v *QueryTxTransactionsEdgesEdgesNodeNodeTransaction) GetId() string
GetId returns QueryTxTransactionsEdgesEdgesNodeNodeTransaction.Id, and is useful for accessing the field via an interface.
func (*QueryTxTransactionsEdgesEdgesNodeNodeTransaction) GetTags ¶
func (v *QueryTxTransactionsEdgesEdgesNodeNodeTransaction) GetTags() []QueryTxTransactionsEdgesEdgesNodeNodeTransactionTagsTag
GetTags returns QueryTxTransactionsEdgesEdgesNodeNodeTransaction.Tags, and is useful for accessing the field via an interface.
type QueryTxTransactionsEdgesEdgesNodeNodeTransactionTagsTag ¶
type QueryTxTransactionsEdgesEdgesNodeNodeTransactionTagsTag struct { Name string `json:"name"` Value string `json:"value"` }
QueryTxTransactionsEdgesEdgesNodeNodeTransactionTagsTag includes the requested fields of the GraphQL type Tag.
func (*QueryTxTransactionsEdgesEdgesNodeNodeTransactionTagsTag) GetName ¶
func (v *QueryTxTransactionsEdgesEdgesNodeNodeTransactionTagsTag) GetName() string
GetName returns QueryTxTransactionsEdgesEdgesNodeNodeTransactionTagsTag.Name, and is useful for accessing the field via an interface.
func (*QueryTxTransactionsEdgesEdgesNodeNodeTransactionTagsTag) GetValue ¶
func (v *QueryTxTransactionsEdgesEdgesNodeNodeTransactionTagsTag) GetValue() string
GetValue returns QueryTxTransactionsEdgesEdgesNodeNodeTransactionTagsTag.Value, and is useful for accessing the field via an interface.