actions/getTxAuthDataSignature
Type Aliases
TxAuthDataSignatureAction()
TxAuthDataSignatureAction: (
config
,input
) =>Promise
\<{blockExpiration
:number
;isAuthorized
:true
;payload
:string
;signature
:EIP155Signature
; } | {errorMessage
:any
;isAuthorized
:false
; } & {namespace
:"eip155"
;userAddress
:AddressSchema
; }>(config
,input
) =>Promise
\<{blockExpiration
:number
;isAuthorized
:true
;signature
:EdSignature
; } | {errorMessage
:any
;isAuthorized
:false
; } & {namespace
:"tezos"
;userAddress
:TezosImplicitAddress
; }>
Signs the user transaction data with Compilot's signer private key. This is the action that should be used to handle signature gating. Will only sign if the user is verified.
Parameters
• config
the configuration
• input: {args
: unknown
[];blockExpiration
: number
;chainId
: EvmChainId
;contractAbi
: Record
\<string
, unknown
>[];contractAddress
: AddressSchema
;functionName
: string
;nonce
: number
;userAddress
: AddressSchema
; } & {namespace
: "eip155"
;userAddress
: AddressSchema
; }
the transaction data to sign
Returns
Promise
\<{blockExpiration
: number
;isAuthorized
: true
;payload
: string
;signature
: EIP155Signature
; } | {errorMessage
: any
;isAuthorized
: false
; } & {namespace
: "eip155"
;userAddress
: AddressSchema
; }>
a promise that resolves to the signed transaction data response.
Parameters
• config
• input: {args
: string
;blockExpiration
: number
;chainID
: TezosChainId
;contractAddress
: TezosContractAddress
;functionName
: TezosEntrypointName
;nonce
: number
;userAddress
: TezosImplicitAddress
; } & {namespace
: "tezos"
;userAddress
: TezosImplicitAddress
; }
Returns
Promise
\<{blockExpiration
: number
;isAuthorized
: true
;signature
: EdSignature
; } | {errorMessage
: any
;isAuthorized
: false
; } & {namespace
: "tezos"
;userAddress
: TezosImplicitAddress
; }>
Functions
getTxAuthDataSignature()
getTxAuthDataSignature(config, input)
getTxAuthDataSignature(
config
,input
):Promise
\<{blockExpiration
:number
;isAuthorized
:true
;payload
:string
;signature
:EIP155Signature
; } | {errorMessage
:any
;isAuthorized
:false
; } & {namespace
:"eip155"
;userAddress
:AddressSchema
; }>
Signs the user transaction data with Compilot's signer private key. This is the action that should be used to handle signature gating. Will only sign if the user is verified.
Parameters
• config
the configuration
• input: {args
: unknown
[];blockExpiration
: number
;chainId
: EvmChainId
;contractAbi
: Record
\<string
, unknown
>[];contractAddress
: AddressSchema
;functionName
: string
;nonce
: number
;userAddress
: AddressSchema
; } & {namespace
: "eip155"
;userAddress
: AddressSchema
; }
the transaction data to sign
Returns
Promise
\<{blockExpiration
: number
;isAuthorized
: true
;payload
: string
;signature
: EIP155Signature
; } | {errorMessage
: any
;isAuthorized
: false
; } & {namespace
: "eip155"
;userAddress
: AddressSchema
; }>
a promise that resolves to the signed transaction data response.
getTxAuthDataSignature(config, input)
getTxAuthDataSignature(
config
,input
):Promise
\<{blockExpiration
:number
;isAuthorized
:true
;signature
:EdSignature
; } | {errorMessage
:any
;isAuthorized
:false
; } & {namespace
:"tezos"
;userAddress
:TezosImplicitAddress
; }>
Parameters
• config
• input: {args
: string
;blockExpiration
: number
;chainID
: TezosChainId
;contractAddress
: TezosContractAddress
;functionName
: TezosEntrypointName
;nonce
: number
;userAddress
: TezosImplicitAddress
; } & {namespace
: "tezos"
;userAddress
: TezosImplicitAddress
; }
Returns
Promise
\<{blockExpiration
: number
;isAuthorized
: true
;signature
: EdSignature
; } | {errorMessage
: any
;isAuthorized
: false
; } & {namespace
: "tezos"
;userAddress
: TezosImplicitAddress
; }>