Ƭ AbiMap : Record
<string
, JsonAbi
>
Ƭ AccountEvent : Object
Event trigger when the current account on the connector is changed
if the account is not authorized for the connection it should trigger with value null.
Ƭ AccountsEvent : Object
Event trigger when the accounts available to the
connection changes.
Ƭ Asset : Object
Name Type Description icon
string
icon of the asset name
string
name of the asset networks
(NetworkEthereum
| NetworkFuel
)[] asset id on Fuel Network symbol
string
description of the asset
Ƭ
AssetEth :
Omit
<
Asset
,
"networks"
> &
NetworkEthereum
Ƭ
AssetFuel :
Omit
<
Asset
,
"networks"
> &
NetworkFuel
Ƭ Block : Object
A Fuel block
Name Type height
BN
id
string
time
string
transactionIds
string
[]
Ƭ BlockHeader : Object
Name Type applicationHash
string
daHeight
BN
height
BN
id
string
messageReceiptCount
BN
messageReceiptRoot
string
prevRoot
string
time
string
transactionsCount
BN
transactionsRoot
string
Ƭ
BlockId :
SuccessStatus
[
"block"
][
"id"
] |
FailureStatus
[
"block"
][
"id"
]
Ƭ
BurnedAsset :
MintedAsset
Ƭ CacheFor : Object
▪ [key: string
]: { timeout
: number
; value
: unknown
} | null
Ƭ CalculateTransactionFeeParams : Object
Name Type consensusParameters
Pick
<GqlConsensusParameters
, "gasCosts"
> & { feeParams
: FeeParams
}gasUsed
BN
rawPayload
string
Ƭ CallResult : Object
Name Type receipts
TransactionResultReceipt
[]
Ƭ ChainInfo : Object
Chain information
Name Type baseChainHeight
BN
consensusParameters
ConsensusParameters
gasCosts
GqlGasCosts
latestBlock
{ height
: BN
; id
: string
; time
: string
; transactions
: { id
: string
}[] } latestBlock.height
BN
latestBlock.id
string
latestBlock.time
string
latestBlock.transactions
{ id
: string
}[] name
string
Ƭ ChangeTransactionRequestOutput : Object
Name Type Description assetId
BytesLike
Asset ID of coins to
BytesLike
Receiving address or script hash type
OutputType.Change
-
Icon Link Coin
Ƭ Coin : Object
A Fuel coin
Name Type amount
BN
assetId
string
blockCreated
BN
id
string
maturity
number
owner
AbstractAddress
txCreatedIdx
BN
Ƭ CoinQuantity : Object
Name Type amount
BN
assetId
string
max?
BN
Ƭ
CoinQuantityLike : [amount: BigNumberish, assetId?: BytesLike, max?: BigNumberish] | {
amount
:
BigNumberish
;
assetId?
:
BytesLike
;
max?
:
BigNumberish
}
Ƭ CoinTransactionRequestInput : Object
Name Type Description amount
BigNumberish
Amount of coins assetId
BytesLike
Asset ID of the coins id
BytesLike
UTXO ID maturity?
number
UTXO being spent must have been created at least this many blocks ago owner
BytesLike
Owning address or script hash predicate?
BytesLike
Predicate bytecode predicateData?
BytesLike
Predicate input data (parameters) predicateGasUsed?
BigNumberish
Gas used by predicate txPointer
BytesLike
Points to the TX whose output is being spent. (TxPointer) type
InputType.Coin
- witnessIndex
number
Index of witness that authorizes spending the coin
Ƭ CoinTransactionRequestOutput : Object
Name Type Description amount
BigNumberish
Amount of coins to send assetId
BytesLike
Asset ID of coins to
BytesLike
Receiving address or script hash type
OutputType.Coin
-
Ƭ ConnectorMetadata : Object
Name Type image?
string
| { dark
: string
; light
: string
}install
{ action
: string
; description
: string
; link
: string
} install.action
string
install.description
string
install.link
string
Ƭ ContractCreatedTransactionRequestOutput : Object
Name Type Description contractId
BytesLike
Contract ID stateRoot
BytesLike
State Root type
OutputType.ContractCreated
-
Ƭ ContractResult : Object
Deployed Contract bytecode and contract id
Name Type bytecode
string
id
string
Ƭ ContractTransactionRequestInput : Object
Name Type Description contractId
BytesLike
Contract ID txPointer
BytesLike
Points to the TX whose output is being spent. (TxPointer) type
InputType.Contract
-
Ƭ ContractTransactionRequestOutput : Object
Name Type Description inputIndex
number
Index of input contract type
OutputType.Contract
-
Ƭ DeferPromise <R
>: Object
Name Type promise
Promise
<R
>reject
(error
: unknown
) => void
resolve
(value
: R
) => void
Ƭ EstimatePredicateParams : Object
Name Type estimatePredicates?
boolean
Ƭ EstimateTransactionParams : Object
Transaction estimation Param
Name Type estimateTxDependencies?
boolean
Ƭ
EstimateTxDependenciesReturns :
CallResult
& {
missingContractIds
:
string
[] ;
outputVariables
:
number
}
Ƭ
FailureStatus :
Extract
<
GraphqlTransactionStatus
, {
__typename
:
"FailureStatus"
}>
Ƭ FuelABI : JsonAbi
ABI that represents a binary code interface from Sway.
Ƭ FuelConfig : Object
All the events available to the connector.
Ƭ
FuelConnectorEventsType :
FuelConnectorEvents
[
"type"
]
Ƭ FuelConnectorSelectOptions : Object
Name Type emitEvents?
boolean
Ƭ
FuelEventArg <
T
>:
Extract
<
FuelConnectorEventTypes
, {
type
:
T
}>[
"data"
]
Extract the event argument type from the event type.
Ƭ GetAssetNetworkParams <T
>: Object
Name Type asset
Asset
chainId?
number
networkType
T
Ƭ
GetOperationParams : {
abiMap?
:
AbiMap
;
maxInputs
:
BN
;
transactionType
:
TransactionType
} &
InputOutputParam
&
ReceiptParam
&
RawPayloadParam
Ƭ GqlTransaction : NonNullable
<GqlGetTransactionQuery
["transaction"
]>
Ƭ
GraphqlTransactionStatus :
GqlTransaction
[
"status"
]
Ƭ
InputOutputParam :
InputParam
&
OutputParam
Ƭ InputParam : Object
Ƭ JsonAbisFromAllCalls : Object
Name Type main
JsonAbi
otherContractsAbis
Record
<string
, JsonAbi
>
Ƭ MerkleProof : Object
Name Type proofIndex
BN
proofSet
string
[]
Ƭ Message : Object
A Fuel message
Ƭ MessageCoin : Object
Ƭ MessageProof : Object
Message Proof
Ƭ MessageStatus : Object
Message Status
Name Type state
GqlMessageState
Ƭ MessageTransactionRequestInput : Object
Name Type Description amount
BigNumberish
Amount of coins data?
BytesLike
data of message nonce
BytesLike
Unique nonce of message predicate?
BytesLike
Predicate bytecode predicateData?
BytesLike
Predicate input data (parameters) predicateGasUsed?
BigNumberish
Gas used by predicate recipient
BytesLike
Address of recipient sender
BytesLike
Address of sender type
InputType.Message
- witnessIndex
number
Index of witness that authorizes the message
Ƭ MnemonicPhrase : string
| string
[]
Ƭ Network : Object
Network
Name Type Description chainId
number
The chain id of the network. url
string
The name of the network.
Ƭ NetworkEthereum : Object
Name Type Description address?
string
address of the asset contract chainId
number
chain id of the network decimals
number
number of decimals of the asset type
"ethereum"
type of network
Ƭ NetworkFuel : Object
Name Type Description assetId
string
assetId on the Fuel Network chainId
number
chain id of the network contractId?
string
the contractId of that generated the Asset on the Fuel Network decimals
number
number of decimals of the asset type
"fuel"
type of network
Ƭ
NetworkTypes :
NetworkEthereum
[
"type"
] |
NetworkFuel
[
"type"
]
Ƭ NodeInfo : Object
Node information
Name Type maxDepth
BN
maxTx
BN
minGasPrice
BN
nodeVersion
string
peers
GqlPeerInfo
[]utxoValidation
boolean
vmBacktrace
boolean
Ƭ NodeInfoAndConsensusParameters : Object
Name Type gasPerByte
BN
gasPriceFactor
BN
maxGasPerTx
BN
minGasPrice
BN
nodeVersion
string
Ƭ Operation : Object
Ƭ OperationCoin : Object
Name Type amount
BNInput
assetId
string
Ƭ
OperationFunctionCall : {
argumentsProvided?
:
Record
<
string
,
unknown
> ;
functionName
:
string
;
functionSignature
:
string
} &
Partial
<
OperationCoin
>
Ƭ OperationTransactionAddress : Object
Name Type address
string
chain?
ChainName
type
AddressType
Ƭ OutputParam : Object
Ƭ PredicateParams <T
>: Object
Name Type abi?
JsonAbi
bytecode
BytesLike
configurableConstants?
{ [name: string]
: unknown
; } inputData?
T
provider
Provider
Ƭ
ProgramState :
SuccessStatus
[
"programState"
]
Provider Call transaction params
Ƭ ProviderOptions : Object
Name Type Description cacheUtxo?
number
Cache UTXOs for the given time [ms]. fetch?
(url
: string
, requestInit?
: RequestInit
, providerOptions?
: Omit
<ProviderOptions
, "fetch"
>) => Promise
<Response
> Custom fetch function to use for making requests. requestMiddleware?
(request
: RequestInit
) => RequestInit
| Promise
<RequestInit
> Middleware to modify the request before it is sent. This can be used to add headers, modify the body, etc. retryOptions?
RetryOptions
Retry options to use when fetching data from the node. timeout?
number
Timeout [ms] after which every request will be aborted.
Ƭ
ProviderSendTxParams :
EstimateTransactionParams
& {
awaitExecution?
:
boolean
}
Provider Send transaction params
Ƭ RawCoin : Object
Name Type amount
string
assetId
string
blockCreated
string
maturity
string
owner
string
txCreatedIdx
string
utxoId
string
Ƭ RawMessage : Object
Name Type amount
string
assetId
string
daHeight
string
data
string
nonce
string
recipient
string
sender
string
Ƭ RawPayloadParam : Object
Name Type rawPayload?
string
Ƭ
RawResource :
RawCoin
|
RawMessage
Ƭ
Reason :
FailureStatus
[
"reason"
]
Ƭ ReceiptParam : Object
Name Type receipts
TransactionResultReceipt
[]
Ƭ
Resource :
Coin
|
MessageCoin
Ƭ
SqueezedOutStatus :
Extract
<
GraphqlTransactionStatus
, {
__typename
:
"SqueezedOutStatus"
}>
Ƭ Status : Object
Name Type connected
boolean
installed
boolean
Ƭ
SubmittedStatus :
Extract
<
GraphqlTransactionStatus
, {
__typename
:
"SubmittedStatus"
}>
Ƭ
SuccessStatus :
Extract
<
GraphqlTransactionStatus
, {
__typename
:
"SuccessStatus"
}>
Icon Link Time
Ƭ
Time :
SubmittedStatus
[
"time"
] |
SuccessStatus
[
"time"
] |
FailureStatus
[
"time"
]
Ƭ TransactionCost : Object
Name Type estimatedInputs
TransactionRequest
["inputs"
]gasPrice
BN
gasUsed
BN
maxFee
BN
maxGas
BN
minFee
BN
minGas
BN
minGasPrice
BN
missingContractIds
string
[]outputVariables
number
receipts
TransactionResultReceipt
[]requiredQuantities
CoinQuantity
[]usedFee
BN
Ƭ
TransactionRequestLike : {
type
:
Script
} &
ScriptTransactionRequestLike
| {
type
:
Create
} &
CreateTransactionRequestLike
Ƭ TransactionResultBurnReceipt : ReceiptBurn
Ƭ TransactionResultMintReceipt : ReceiptMint
Ƭ TransactionSummary <TTransactionType
>: Object
Name Type TTransactionType
void
Name Type blockId?
BlockId
burnedAssets
BurnedAsset
[]date?
Date
fee
BN
gasUsed
BN
id?
string
isStatusFailure
boolean
isStatusPending
boolean
isStatusSuccess
boolean
isTypeCreate
boolean
isTypeMint
boolean
isTypeScript
boolean
mintedAssets
MintedAsset
[]operations
Operation
[]receipts
TransactionResultReceipt
[]status?
TransactionStatus
time?
string
transaction
Transaction
<TTransactionType
>type
TransactionTypeName
Ƭ TxParamsType : Pick
<ScriptTransactionRequestLike
, "gasLimit"
| "gasPrice"
| "maturity"
| "maxFee"
| "witnessLimit"
>
Ƭ UTXOValidationParams : Object
UTXO Validation Param
Name Type utxoValidation?
boolean
Ƭ VariableTransactionRequestOutput : Object
Name Type type
OutputType.Variable
Ƭ VaultConfig : Object
Name Type secret?
string
title?
string
type
string
Ƭ
VaultsState : {
data?
:
VaultConfig
;
title?
:
string
;
type
:
string
;
vault
:
Vault
}[]
Ƭ Version : Object
Version
Name Type Description app
string
- network
string
Version selection this allow Caret Ranges ^1.2.3 ^0.2.5 ^0.0.4 Tilde Ranges ~1.2.3 ~1.2 ~1 And Exact Versions 1.0.0
Ƭ WalletManagerAccount : Object
Ƭ WalletManagerOptions : Object
• Const
CHAIN_IDS : Object
Name Type eth
{ foundry
: number
= 31337; sepolia
: number
= 11155111 } eth.foundry
number
eth.sepolia
number
fuel
{ beta5
: number
= 0; devnet
: number
= 10 } fuel.beta5
number
fuel.devnet
number
• Const
FuelConnectorEventType : "FuelConnector"
• Const
MNEMONIC_SIZES : number
[]
• Const
english : string
[]
▸
addAmountToAsset (
params
):
CoinQuantity
[]
▸ assembleReceiptByType (receipt
): ReceiptCall
| ReceiptReturn
| ReceiptReturnData
| ReceiptPanic
| ReceiptRevert
| ReceiptLog
| ReceiptLogData
| ReceiptTransfer
| ReceiptTransferOut
| ReceiptScriptResult
| ReceiptMessageOut
| ReceiptMint
| ReceiptBurn
Name Type receipt
GqlReceiptFragmentFragment
ReceiptCall
| ReceiptReturn
| ReceiptReturnData
| ReceiptPanic
| ReceiptRevert
| ReceiptLog
| ReceiptLogData
| ReceiptTransfer
| ReceiptTransferOut
| ReceiptScriptResult
| ReceiptMessageOut
| ReceiptMint
| ReceiptBurn
▸ cacheFor <F
>(fn
, «destructured»
): F
Name Type F
extends (...args
: unknown
[]) => Promise
<unknown
>
Name Type fn
F
«destructured»
CacheForOptions
F
▸ calculateMetadataGasForTxCreate («destructured»
): BN
Name Type «destructured»
Object
› contractBytesSize
BN
› gasCosts
GqlGasCosts
› stateRootSize
number
› txBytesSize
number
BN
▸ calculateMetadataGasForTxScript («destructured»
): BN
Name Type «destructured»
Object
› gasCosts
GqlGasCosts
› txBytesSize
number
BN
▸ calculateTransactionFee (params
): Object
Object
Name Type fee
BN
feeFromGasUsed
BN
maxFee
BN
minFee
BN
▸
deferPromise <
R
>():
DeferPromise
<
R
>
▸ dispatchFuelConnectorEvent (connector
): void
Fuel Connector Event is a custom event that can be used by the connector to
inform the Fuel Connector Manager that a new connector is available.
void
▸
extractBurnedAssetsFromReceipts (
receipts
):
MintedAsset
[]
Name Type receipts
TransactionResultReceipt
[]
▸
extractMintedAssetsFromReceipts (
receipts
):
MintedAsset
[]
Name Type receipts
TransactionResultReceipt
[]
▸ gasUsedByInputs (inputs
, txBytesSize
, gasCosts
): BN
BN
▸
getAssetEth (
asset
,
chainId?
):
undefined
|
AssetEth
Returns the asset's details on Ethereum
Name Type asset
Asset
chainId?
number
▸
getAssetFuel (
asset
,
chainId?
):
undefined
|
AssetFuel
Returns the asset's details on Fuel
Name Type asset
Asset
chainId?
number
▸ getAssetNetwork <T
>(«destructured»
): NetworkTypeToNetwork
<T
>
Returns the asset's network on the given network
eg. getAssetNetwork({ asset, chainId: 1, networkType: 'ethereum' }) will return the asset's details on Ethereum mainnet
NetworkTypeToNetwork
<T
>
▸
getAssetWithNetwork <
T
>(
«destructured»
):
undefined
|
AssetEth
|
AssetFuel
Returns the asset's details on the given network alongwith the asset itself
eg. getAssetWithNetwork({ asset, chainId: 1, networkType: 'ethereum' }) will return the asset's details on Ethereum mainnet and the asset itself
▸ getDefaultChainId (networkType
): undefined
| number
Returns the default chainId for the given network
undefined
| number
▸ getMaxGas (params
): BN
BN
▸ getMinGas (params
): BN
BN
▸ getTransactionSummary <TTransactionType
>(params
): Promise
<TransactionResult
>
Name Type TTransactionType
void
Name Type params
GetTransactionSummaryParams
Promise
<TransactionResult
>
▸ processGqlReceipt (gqlReceipt
): TransactionResultReceipt
Name Type gqlReceipt
GqlReceiptFragmentFragment
TransactionResultReceipt
▸ resolveGasDependentCosts (byteSize
, gasDependentCost
): BN
Name Type byteSize
BNInput
gasDependentCost
GqlDependentCost
BN
▸
resolveIconPaths (
assets
,
basePath?
): {
icon
:
string
;
name
:
string
;
networks
: (
NetworkEthereum
|
NetworkFuel
)[] ;
symbol
:
string
}[]
Returns the list of assets with the icon paths 'resolved'. eg. ./eth.svg
-> https://some-url.com/eth.svg
Name Type Default value Description assets
Assets
undefined
List of assets basePath
string
'./'
Base path for the icon URLs (default: './')
{
icon
:
string
;
name
:
string
;
networks
: (
NetworkEthereum
|
NetworkFuel
)[] ;
symbol
:
string
}[]
The assets with the icon paths resolved
▸ urlJoin (baseUrl
, ...paths
): string
Name Type baseUrl
undefined
| string
...paths
string
[]
string
▸ withTimeout <F
, RT
>(promise
, timeout?
): Promise
<RT
>
Name Type F
extends Promise
<unknown
> RT
Awaited
<F
>
Name Type Default value promise
F
undefined
timeout
number
1050
Promise
<RT
>
Ƭ AssetsEvent : Object
Event trigger when the assets list of metadata changed.
AssetsEvent
Ƭ ConnectionEvent : Object
Event trigger when connection status changes. With the new connection status.
ConnectionEvent
Ƭ ConnectorEvent : Object
Event trigger when the current connector has changed.
ConnectorEvent
Ƭ ConnectorsEvent : Object
Event trigger when the list of connectors has changed.
ConnectorsEvent
Ƭ NetworkEvent : Object
Event trigger when the network selected on the connector is changed.
It should trigger even if the network is not available for the connection.
NetworkEvent
Ƭ NetworksEvent : Object
Event trigger when the network selected on the connector is changed.
It should trigger even if the network is not available for the connection.
NetworksEvent