Function: createRelayAccessToken()
createRelayAccessToken(
opts):Promise<string>
Defined in: @meddleware/walrus-storage-client/src/access.ts:77
One-shot: fetch a challenge, sign it with the wallet, and return the encoded proof token to pass as createWalrusClient({ uploadRelayAuthToken }). The signature binds the relay's origin, the gate and the network, so the token works nowhere else. For single-use gates, supply the consumeDigest of the on-chain consume transaction.
Parameters
opts
address
string
consumeDigest?
string
gateId
string
The Gate the relay guards (0x + 64 lower-case hex).
network
relayHost
string
sign
signal?
AbortSignal
Returns
Promise<string>
Throws
if the challenge fetch fails or an input is not in its canonical form.
Throws
if the wallet signer rejects the message.