Icon LinkModule: @fuel-ts/providers

Icon LinkEnumerations

Icon LinkClasses

Icon LinkInterfaces

Icon LinkType Aliases

Icon LinkAbiParam

Ƭ AbiParam: Object

Icon LinkType declaration

NameType
abiMap?{ [key: string]: JsonAbi; }

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:134 Icon Link


Icon LinkBlock

Ƭ Block: Object

A Fuel block

Icon LinkType declaration

NameType
heightBN
idstring
timestring
transactionIdsstring[]

Icon LinkDefined in

packages/providers/src/provider.ts:52 Icon Link


Icon LinkBlockHeader

Ƭ BlockHeader: Object

Icon LinkType declaration

NameType
applicationHashstring
daHeightBN
heightBN
idstring
messageReceiptCountBN
messageReceiptRootstring
prevRootstring
timestring
transactionsCountBN
transactionsRootstring

Icon LinkDefined in

packages/providers/src/message.ts:34 Icon Link


Icon LinkBlockId

Ƭ BlockId: SuccessStatus["block"]["id"] | FailureStatus["block"]["id"]

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:24 Icon Link


Icon LinkBuildPredicateOptions

Ƭ BuildPredicateOptions: { fundTransaction?: boolean } & Pick<TransactionRequestLike, "gasLimit" | "gasPrice" | "maturity">

Icon LinkDefined in

packages/providers/src/provider.ts:183 Icon Link


Icon LinkBurnedAsset

Ƭ BurnedAsset: MintedAsset

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:160 Icon Link


Icon LinkCallResult

Ƭ CallResult: Object

Icon LinkType declaration

NameType
receiptsTransactionResultReceipt[]

Icon LinkDefined in

packages/providers/src/provider.ts:45 Icon Link


Icon LinkChainInfo

Ƭ ChainInfo: Object

Chain information

Icon LinkType declaration

NameType
baseChainHeightBN
consensusParameters{ chainId: BN ; contractMaxSize: BN ; gasPerByte: BN ; gasPriceFactor: BN ; maxGasPerPredicate: BN ; maxGasPerTx: BN ; maxInputs: BN ; maxMessageDataLength: BN ; maxOutputs: BN ; maxPredicateDataLength: BN ; maxPredicateLength: BN ; maxScriptDataLength: BN ; maxScriptLength: BN ; maxStorageSlots: BN ; maxWitnesses: BN }
consensusParameters.chainIdBN
consensusParameters.contractMaxSizeBN
consensusParameters.gasPerByteBN
consensusParameters.gasPriceFactorBN
consensusParameters.maxGasPerPredicateBN
consensusParameters.maxGasPerTxBN
consensusParameters.maxInputsBN
consensusParameters.maxMessageDataLengthBN
consensusParameters.maxOutputsBN
consensusParameters.maxPredicateDataLengthBN
consensusParameters.maxPredicateLengthBN
consensusParameters.maxScriptDataLengthBN
consensusParameters.maxScriptLengthBN
consensusParameters.maxStorageSlotsBN
consensusParameters.maxWitnessesBN
latestBlock{ height: BN ; id: string ; time: string ; transactions: { id: string }[] }
latestBlock.heightBN
latestBlock.idstring
latestBlock.timestring
latestBlock.transactions{ id: string }[]
namestring
peerCountnumber

Icon LinkDefined in

packages/providers/src/provider.ts:70 Icon Link


Icon LinkChangeTransactionRequestOutput

Ƭ ChangeTransactionRequestOutput: Object

Icon LinkType declaration

NameTypeDescription
assetIdBytesLikeAsset ID of coins
toBytesLikeReceiving address or script hash
typeOutputType.Change-

Icon LinkDefined in

packages/providers/src/transaction-request/output.ts:23 Icon Link


Icon LinkCoin

Ƭ Coin: Object

A Fuel coin

Icon LinkType declaration

NameType
amountBN
assetIdstring
blockCreatedBN
idstring
maturitynumber
ownerAbstractAddress
txCreatedIdxBN

Icon LinkDefined in

packages/providers/src/coin.ts:7 Icon Link


Icon LinkCoinQuantity

Ƭ CoinQuantity: Object

Icon LinkType declaration

NameType
amountBN
assetIdstring
max?BN

Icon LinkDefined in

packages/providers/src/coin-quantity.ts:10 Icon Link


Icon LinkCoinQuantityLike

Ƭ CoinQuantityLike: [amount: BigNumberish, assetId?: BytesLike, max?: BigNumberish] | { amount: BigNumberish ; assetId?: BytesLike ; max?: BigNumberish }

Icon LinkDefined in

packages/providers/src/coin-quantity.ts:7 Icon Link


Icon LinkCoinTransactionRequestInput

Ƭ CoinTransactionRequestInput: Object

Icon LinkType declaration

NameTypeDescription
amountBigNumberishAmount of coins
assetIdBytesLikeAsset ID of the coins
idBytesLikeUTXO ID
maturity?numberUTXO being spent must have been created at least this many blocks ago
ownerBytesLikeOwning address or script hash
predicate?BytesLikePredicate bytecode
predicateData?BytesLikePredicate input data (parameters)
predicateGasUsed?BigNumberishGas used by predicate
txPointerBytesLikePoints to the TX whose output is being spent. (TxPointer)
typeInputType.Coin-
witnessIndexnumberIndex of witness that authorizes spending the coin

Icon LinkDefined in

packages/providers/src/transaction-request/input.ts:9 Icon Link


Icon LinkCoinTransactionRequestOutput

Ƭ CoinTransactionRequestOutput: Object

Icon LinkType declaration

NameTypeDescription
amountBigNumberishAmount of coins to send
assetIdBytesLikeAsset ID of coins
toBytesLikeReceiving address or script hash
typeOutputType.Coin-

Icon LinkDefined in

packages/providers/src/transaction-request/output.ts:9 Icon Link


Icon LinkContractCreatedTransactionRequestOutput

Ƭ ContractCreatedTransactionRequestOutput: Object

Icon LinkType declaration

NameTypeDescription
contractIdBytesLikeContract ID
stateRootBytesLikeState Root
typeOutputType.ContractCreated-

Icon LinkDefined in

packages/providers/src/transaction-request/output.ts:33 Icon Link


Icon LinkContractResult

Ƭ ContractResult: Object

Deployed Contract bytecode and contract id

Icon LinkType declaration

NameType
bytecodestring
idstring

Icon LinkDefined in

packages/providers/src/provider.ts:62 Icon Link


Icon LinkContractTransactionRequestInput

Ƭ ContractTransactionRequestInput: Object

Icon LinkType declaration

NameTypeDescription
contractIdBytesLikeContract ID
txPointerBytesLikePoints to the TX whose output is being spent. (TxPointer)
typeInputType.Contract-

Icon LinkDefined in

packages/providers/src/transaction-request/input.ts:74 Icon Link


Icon LinkContractTransactionRequestOutput

Ƭ ContractTransactionRequestOutput: Object

Icon LinkType declaration

NameTypeDescription
inputIndexnumberIndex of input contract
typeOutputType.Contract-

Icon LinkDefined in

packages/providers/src/transaction-request/output.ts:18 Icon Link


Icon LinkFailureStatus

Ƭ FailureStatus: Extract<GraphqlTransactionStatus, { __typename: "FailureStatus" }>

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:14 Icon Link


Icon LinkFetchRequestOptions

Ƭ FetchRequestOptions: Object

Icon LinkType declaration

NameType
bodystring
headers{ [key: string]: string; }
method"POST"

Icon LinkDefined in

packages/providers/src/provider.ts:187 Icon Link


Icon LinkGetOperationParams

Ƭ GetOperationParams: { transactionType: TransactionType } & InputOutputParam & ReceiptParam & AbiParam & RawPayloadParam

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:146 Icon Link


Icon LinkGqlTransaction

Ƭ GqlTransaction: NonNullable<GqlGetTransactionQuery["transaction"]>

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:9 Icon Link


Icon LinkGraphqlTransactionStatus

Ƭ GraphqlTransactionStatus: GqlTransaction["status"]

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:11 Icon Link


Icon LinkInputOutputParam

Ƭ InputOutputParam: InputParam & OutputParam

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:144 Icon Link


Icon LinkInputParam

Ƭ InputParam: Object

Icon LinkType declaration

NameType
inputsInput[]

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:122 Icon Link


Icon LinkMerkleProof

Ƭ MerkleProof: Object

Icon LinkType declaration

NameType
proofIndexBN
proofSetstring[]

Icon LinkDefined in

packages/providers/src/message.ts:29 Icon Link


Icon LinkMessage

Ƭ Message: Object

A Fuel message

Icon LinkType declaration

NameType
amountBN
daHeightBN
dataBytesLike
messageIdBytesLike
nonceBytesLike
recipientAbstractAddress
senderAbstractAddress

Icon LinkDefined in

packages/providers/src/message.ts:9 Icon Link


Icon LinkMessageCoin

Ƭ MessageCoin: Object

Icon LinkType declaration

NameType
amountBN
assetIdstring
daHeightBN
nonceBytesLike
recipientAbstractAddress
senderAbstractAddress

Icon LinkDefined in

packages/providers/src/message.ts:20 Icon Link


Icon LinkMessageProof

Ƭ MessageProof: Object

Message Proof

Icon LinkType declaration

NameType
amountBN
blockProofMerkleProof
commitBlockHeaderBlockHeader
datastring
messageBlockHeaderBlockHeader
messageProofMerkleProof
noncestring
recipientAbstractAddress
senderAbstractAddress

Icon LinkDefined in

packages/providers/src/message.ts:50 Icon Link


Icon LinkMessageTransactionRequestInput

Ƭ MessageTransactionRequestInput: Object

Icon LinkType declaration

NameTypeDescription
amountBigNumberishAmount of coins
data?BytesLikedata of message
nonceBytesLikeUnique nonce of message
predicate?BytesLikePredicate bytecode
predicateData?BytesLikePredicate input data (parameters)
predicateGasUsed?BigNumberishGas used by predicate
recipientBytesLikeAddress of recipient
senderBytesLikeAddress of sender
typeInputType.Message-
witnessIndexnumberIndex of witness that authorizes the message

Icon LinkDefined in

packages/providers/src/transaction-request/input.ts:43 Icon Link


Icon LinkNodeInfoAndConsensusParameters

Ƭ NodeInfoAndConsensusParameters: Object

Node information

Icon LinkType declaration

NameType
gasPerByteBN
gasPriceFactorBN
maxGasPerTxBN
minGasPriceBN
nodeVersionstring

Icon LinkDefined in

packages/providers/src/provider.ts:102 Icon Link


Icon LinkOperation

Ƭ Operation: Object

Icon LinkType declaration

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:92 Icon Link


Icon LinkOperationCoin

Ƭ OperationCoin: Object

Icon LinkType declaration

NameType
amountBNInput
assetIdstring

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:81 Icon Link


Icon LinkOperationFunctionCall

Ƭ OperationFunctionCall: { argumentsProvided?: Record<string, unknown> ; functionName: string ; functionSignature: string } & Partial<OperationCoin>

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:86 Icon Link


Icon LinkOperationTransactionAddress

Ƭ OperationTransactionAddress: Object

Icon LinkType declaration

NameType
addressstring
chain?ChainName
typeAddressType

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:116 Icon Link


Icon LinkOutputParam

Ƭ OutputParam: Object

Icon LinkType declaration

NameType
outputsOutput[]

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:126 Icon Link


Icon LinkProgramState

Ƭ ProgramState: SuccessStatus["programState"]

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:22 Icon Link


Icon LinkProviderCallParams

Ƭ ProviderCallParams: Object

Provider Call transaction params

Icon LinkType declaration

NameType
utxoValidation?boolean

Icon LinkDefined in

packages/providers/src/provider.ts:204 Icon Link


Icon LinkProviderOptions

Ƭ ProviderOptions: Object

Icon LinkType declaration

NameType
cacheUtxo?number
fetch?(url: string, options: FetchRequestOptions) => Promise<unknown>

Icon LinkDefined in

packages/providers/src/provider.ts:196 Icon Link


Icon LinkRawCoin

Ƭ RawCoin: Object

Icon LinkType declaration

NameType
amountstring
assetIdstring
blockCreatedstring
maturitystring
ownerstring
txCreatedIdxstring
utxoIdstring

Icon LinkDefined in

packages/providers/src/resource.ts:6 Icon Link


Icon LinkRawMessage

Ƭ RawMessage: Object

Icon LinkType declaration

NameType
amountstring
assetIdstring
daHeightstring
datastring
noncestring
recipientstring
senderstring

Icon LinkDefined in

packages/providers/src/resource.ts:16 Icon Link


Icon LinkRawPayloadParam

Ƭ RawPayloadParam: Object

Icon LinkType declaration

NameType
rawPayload?string

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:140 Icon Link


Icon LinkRawResource

Ƭ RawResource: RawCoin | RawMessage

Icon LinkDefined in

packages/providers/src/resource.ts:26 Icon Link


Icon LinkReason

Ƭ Reason: FailureStatus["reason"]

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:21 Icon Link


Icon LinkReceiptParam

Ƭ ReceiptParam: Object

Icon LinkType declaration

NameType
receiptsTransactionResultReceipt[]

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:130 Icon Link


Icon LinkResource

Ƭ Resource: Coin | MessageCoin

Icon LinkDefined in

packages/providers/src/resource.ts:27 Icon Link


Icon LinkSqueezedOutStatus

Ƭ SqueezedOutStatus: Extract<GraphqlTransactionStatus, { __typename: "SqueezedOutStatus" }>

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:16 Icon Link


Icon LinkSubmittedStatus

Ƭ SubmittedStatus: Extract<GraphqlTransactionStatus, { __typename: "SubmittedStatus" }>

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:15 Icon Link


Icon LinkSuccessStatus

Ƭ SuccessStatus: Extract<GraphqlTransactionStatus, { __typename: "SuccessStatus" }>

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:13 Icon Link


Icon LinkTime

Ƭ Time: SubmittedStatus["time"] | SuccessStatus["time"] | FailureStatus["time"]

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:23 Icon Link


Icon LinkTransactionCost

Ƭ TransactionCost: Object

Icon LinkType declaration

NameType
feeBN
gasPriceBN
gasUsedBN
minGasPriceBN

Icon LinkDefined in

packages/providers/src/provider.ts:111 Icon Link


Icon LinkTransactionRequest

Ƭ TransactionRequest: ScriptTransactionRequest | CreateTransactionRequest

Icon LinkDefined in

packages/providers/src/transaction-request/types.ts:12 Icon Link


Icon LinkTransactionRequestInput

Ƭ TransactionRequestInput: CoinTransactionRequestInput | ContractTransactionRequestInput | MessageTransactionRequestInput

Icon LinkDefined in

packages/providers/src/transaction-request/input.ts:83 Icon Link


Icon LinkTransactionRequestLike

Ƭ TransactionRequestLike: { type: Script } & ScriptTransactionRequestLike | { type: Create } & CreateTransactionRequestLike

Icon LinkDefined in

packages/providers/src/transaction-request/types.ts:13 Icon Link


Icon LinkTransactionRequestOutput

Ƭ TransactionRequestOutput: CoinTransactionRequestOutput | ContractTransactionRequestOutput | ChangeTransactionRequestOutput | VariableTransactionRequestOutput | ContractCreatedTransactionRequestOutput

Icon LinkDefined in

packages/providers/src/transaction-request/output.ts:40 Icon Link


Icon LinkTransactionResultBurnReceipt

Ƭ TransactionResultBurnReceipt: ReceiptBurn

Icon LinkDefined in

packages/providers/src/transaction-response/transaction-response.ts:56 Icon Link


Icon LinkTransactionResultMintReceipt

Ƭ TransactionResultMintReceipt: ReceiptMint

Icon LinkDefined in

packages/providers/src/transaction-response/transaction-response.ts:55 Icon Link


Icon LinkTransactionSummary

Ƭ TransactionSummary<TTransactionType>: Object

Icon LinkType parameters

NameType
TTransactionTypevoid

Icon LinkType declaration

NameType
blockId?BlockId
burnedAssetsBurnedAsset[]
feeBN
gasUsedBN
id?string
isStatusFailureboolean
isStatusPendingboolean
isStatusSuccessboolean
isTypeCreateboolean
isTypeMintboolean
isTypeScriptboolean
mintedAssetsMintedAsset[]
operationsOperation[]
receiptsTransactionResultReceipt[]
status?SimplifiedTransactionStatusNameEnum
time?string
transactionTransaction<TTransactionType>
typeTransactionTypeNameEnum

Icon LinkDefined in

packages/providers/src/transaction-summary/types.ts:162 Icon Link


Icon LinkVariableTransactionRequestOutput

Ƭ VariableTransactionRequestOutput: Object

Icon LinkType declaration

NameType
typeOutputType.Variable

Icon LinkDefined in

packages/providers/src/transaction-request/output.ts:30 Icon Link

Icon LinkFunctions

Icon LinkassembleReceiptByType

assembleReceiptByType(receipt): ReceiptCall | ReceiptReturn | ReceiptReturnData | ReceiptPanic | ReceiptRevert | ReceiptLog | ReceiptLogData | ReceiptTransfer | ReceiptTransferOut | ReceiptScriptResult | ReceiptMessageOut | ReceiptMint | ReceiptBurn

Icon LinkParameters

NameType
receiptGqlReceiptFragmentFragment

Icon LinkReturns

ReceiptCall | ReceiptReturn | ReceiptReturnData | ReceiptPanic | ReceiptRevert | ReceiptLog | ReceiptLogData | ReceiptTransfer | ReceiptTransferOut | ReceiptScriptResult | ReceiptMessageOut | ReceiptMint | ReceiptBurn

Icon LinkDefined in

packages/providers/src/utils/receipts.ts:68 Icon Link


Icon LinkextractBurnedAssetsFromReceipts

extractBurnedAssetsFromReceipts(receipts): MintedAsset[]

Icon LinkParameters

NameType
receiptsTransactionResultReceipt[]

Icon LinkReturns

MintedAsset[]

Icon LinkDefined in

packages/providers/src/transaction-summary/receipt.ts:51 Icon Link


Icon LinkextractMintedAssetsFromReceipts

extractMintedAssetsFromReceipts(receipts): MintedAsset[]

Icon LinkParameters

NameType
receiptsTransactionResultReceipt[]

Icon LinkReturns

MintedAsset[]

Icon LinkDefined in

packages/providers/src/transaction-summary/receipt.ts:32 Icon Link


Icon LinkprocessGqlReceipt

processGqlReceipt(gqlReceipt): TransactionResultReceipt

Icon LinkParameters

NameType
gqlReceiptGqlReceiptFragmentFragment

Icon LinkReturns

TransactionResultReceipt

Icon LinkDefined in

packages/providers/src/transaction-summary/receipt.ts:9 Icon Link